☑Kizspy.me
SDN302 SP25_B5
authors
books
borrows
genres
users
B025
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
Ful API Web App at:
http://localhost:9999
Zoom
- FUO
Question 1 (1.5 points) - Retrieve All Books by Genre Name
Develop a REST API to retrieve a list of books that belong to a specific genre. The genre is
specified by its name as a query parameter.
Endpoint: GET /api/books/by-genre?name=<genreName>
• Processing Requirements:
o Use Mongoose populate() to fetch full author and genre documents.
° Sort books by title in ascending order.
+ 100%
Close