From 208d556b3ae266716d14b939612933e4160918cd Mon Sep 17 00:00:00 2001 From: leilafaez Date: Sat, 18 Feb 2023 20:09:52 +0000 Subject: [PATCH] Complete week 3 in server.js file of exercise week 2-https://github.com/CodeYourFuture/SQL-Coursework-Week2/pull/179 --- 2-api/task.md | 2 ++ 1 file changed, 2 insertions(+) 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.