SDN302_-_PE_-_SP_2025_-_Block_5_3837.webp
Y

SDN302_-_PE_-_SP_2025_-_Block_5_3837.webp

  • Media owner Yuji99
  • Ngày thêm
☑Kizspy.me
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 (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:
• Use Mongoose populate() to fetch full author and genre documents.
。 Sort books by title in ascending order.
. Request Example:
GET /api/books/by-genre?name=Software%20Engineering
[
Response Example:
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
SDN302
Thêm bởi
Yuji99
Ngày thêm
Lượt xem
1,321
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom