feat: update, delete, get movies
This commit is contained in:
@@ -10,10 +10,10 @@ http:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"title": "The Breakfast Club",
|
||||
"runtime": "96 mins",
|
||||
"year": 1986,
|
||||
"genres": ["drama"]
|
||||
"title": "Test",
|
||||
"runtime": "120 mins",
|
||||
"year": 2025,
|
||||
"genres": ["action", "horror"]
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
info:
|
||||
name: Delete Movie
|
||||
type: http
|
||||
seq: 5
|
||||
|
||||
http:
|
||||
method: DELETE
|
||||
url: "{{URL}}{{VERSION}}/movies/{{MOVIE_ID}}"
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -0,0 +1,24 @@
|
||||
info:
|
||||
name: Update Movie
|
||||
type: http
|
||||
seq: 4
|
||||
|
||||
http:
|
||||
method: PUT
|
||||
url: "{{URL}}{{VERSION}}/movies/{{MOVIE_ID}}"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"title": "Sinners",
|
||||
"runtime": "120 mins",
|
||||
"year": 2025,
|
||||
"genres": ["action", "horror"]
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
@@ -5,4 +5,4 @@ variables:
|
||||
- name: VERSION
|
||||
value: v1
|
||||
- name: MOVIE_ID
|
||||
value: "1"
|
||||
value: "8"
|
||||
|
||||
Reference in New Issue
Block a user