☑Kizspy.me
SDN302 SP25_B1
books
borrowrecords
Zoom
categories
users
Using the given, build a RESTFUL API application that performs the requirements of the
problem:
Note: 0 will be given to the work that
- Not using connection string to MongoDB in the .env file
- Not configuring the root path of RESTful API Web App at:
http://localhost:9999
Question 1 (2 points) - Retrieve All Books with Category Information
Description: Develop an API to retrieve a list of all books, including full category details.
API Details:
•
URI:
http://localhost:9999/api/books
• Method: GET
.
Output: Returns a list of books with fields: _id, title, author, price, stock, category
(retrieved from the categories collection).
Sample Output:
+ 80%
Close