Newer
Older
labs / tiddlers / content / labs / lab07 / _Labs_07_Web Service Modules.md

The complete API for the web service for milestone 3 is:

URI Jooby Module HTTP Verb Operation DAO Method

/api/products/ | Product | GET | Get all products | getProducts /api/products/{id} | Product | GET | Get product by ID | searchById /api/categories/ | Product | GET | Get categories | getCategories /api/categories/{category} | Product | GET | Get products by category |filterByCategory /api/register/ | Customer | POST | Create customer | saveCustomer /api/customers/{username} | Customer | GET | Get customer by username | getCustomer /api/sales | Sale | POST | Create sale | saveSale

For next week's lab you will need to have completed the Product module (you have already completed half of these operations). You have already completed the Customer module. The Sale module is not needed for a couple of weeks, so add another issue to GitBucket to remind yourself to complete this before lab 10.

You may find the following section of the reference useful: <>