Method: PUT
Example:
Zoom
PUT
http://localhost:9999/api/movie/665f3dd57281d373d1a044d1/remove-star/665f309c253b0c0839f666f1
Send
Figure 10 - Remove a star with_id = "665f309c253b0c0839f666f1" from movie with_id = "665f3dd57281d373d1a044d1"
The process of removing a movie star is successful, returning the movie information
after saving it to the database as shown in Figure 11 - (2 marks).
PUT
http://localhost:9999/api/movie/665f3dd57281d373d1a044d1/remove-star/665f309c253b0c0839f666f1
Send
Params
Authorization
Headers (9) Body Scripts
Tests
Settings
Cookies
Body Cookies Headers (7) Test Results
201 Created 16 ms 674 BSave as example
Q
Pretty
Raw Preview Visualize JSON
1
2
*_id": "66513dd57281d373d1a044d1",
3
"title": "This Boy's Life",
"release": "2024-05-28T00:00:00.000Z",
"description": "Integer tincidunt ante vel ipsum. Praesent blandit lacinia erat.",
*producer": "665f2caa86531e91c6e33c52",
6
7
"director": "665f2fcb6b449f6d1437b6fd",
8
"genres": [
9
"Drama","Comedy"
10
11
1.
12
13
14
"stars": [
*665f309c253b0c0839f666ef",
*6651309c253b0c0839166612"
+ 100%
Close