☑Kizspy.me
Not configuring the root path of RESTful API Web App at:
http://localhost:9999
Question 1 (2 points) - Retrieve All Products with Category Information
Description: Develop an API to retrieve a list of all products, including full category details.
API Details:
URI:
http://localhost:9999/api/products
· Method: GET
•
Output: Returns a list of products with fields: _id, name, price, stock, category
(retrieved from the categories collection).
Sample Output:
Zoom
+100%
Close