diff --git a/2-api/task.md b/2-api/task.md index 924f54de..04cabed8 100644 --- a/2-api/task.md +++ b/2-api/task.md @@ -12,6 +12,8 @@ In the following homework, you will create new API endpoints in the NodeJS appli - If you don't have it already, add a new GET endpoint `/products` to load all the product names along with their prices and supplier names. + + - Update the previous GET endpoint `/products` to filter the list of products by name using a query parameter, for example `/products?name=Cup`. This endpoint should still work even if you don't use the `name` query parameter! - Add a new GET endpoint `/customers/:customerId` to load a single customer by ID.