SDN302_-_PE_-_SP_2025_-_s_2_3470.webp
Hải Yến

SDN302_-_PE_-_SP_2025_-_s_2_3470.webp

☑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
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom