The API at url:
http://localhost:9999/tutorials/:id/comments (:id - is an ObjectId of the Tutorial)
See Figure 2 for more detail.
GET
http://localhost:9999/tutorials/652c1cd546a765d027fb163c/comments
Params Auth Headers (6) Body Pre-req.
Tests Settings
Body
Pretty Raw Preview Visualize
JSON
1
234
{
"_id": "652cc6cd83c0aab446fd6a06",
Send
Cookies
200 OK 25 ms 824 B Save as example
Q
5
6
"username": "Tom Cruise",
"text": "Hi, everyone!",
"createAt": "2023-10-16T05:14:53.257Z"
7
},
8
{
9
10
11
"_id": "652cc74483c0aab446fd6a09",
"username": "Scarlett Johansson","text": "Perfect self-study topic. Thank you!",
12
"createAt": "2023-10-16T05:16:52.418Z"
13
14
{
15
"_id": "652d0ef49ed9c1135a182070",
16
"username": "Lionel Messi",
17
"text": "Great topic. Thank.",
18
"createAt": "2023-10-16T10:22:44.381Z"
19
20
{
21
"_id": "652d55f19ed9c1135a182073",
22
"username": "Cristian Ronaldo","text": "Thanks a lot. This is a beneficial content",
23
24
"createAt": "2023-10-16T15:25:37.866Z"
25
}
26
Zoom
+ 100%
Close