init CRUD
This commit is contained in:
14
.posting/add-director.posting.yaml
Normal file
14
.posting/add-director.posting.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
name: add director
|
||||
method: POST
|
||||
url: http://localhost:8000/directors
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"name": "Kathryn Bigelow",
|
||||
"birthdate": "27-11-1951",
|
||||
"nationality": "US"
|
||||
}
|
||||
content_type: application/json
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
17
.posting/add-movie.posting.yaml
Normal file
17
.posting/add-movie.posting.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: add movie
|
||||
method: POST
|
||||
url: http://localhost:8000/movies
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"title": "point break",
|
||||
"year": 1991,
|
||||
"genre": [
|
||||
"action"
|
||||
],
|
||||
"director_id": "string"
|
||||
}
|
||||
content_type: application/json
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
9
.posting/drop-director.posting.yaml
Normal file
9
.posting/drop-director.posting.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
name: drop director
|
||||
method: DELETE
|
||||
url: http://localhost:8000/directors/:uuid
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
path_params:
|
||||
- name: uuid
|
||||
value: 4d07b836-b4ab-4ef9-9b52-469caec6d741
|
||||
5
.posting/fetch-directors.posting.yaml
Normal file
5
.posting/fetch-directors.posting.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
name: fetch directors
|
||||
url: http://localhost:8000/directors
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
16
.posting/fetch-movie.posting.yaml
Normal file
16
.posting/fetch-movie.posting.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
name: fetch movie
|
||||
url: http://localhost:8000/movies
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"title": "point break",
|
||||
"year": 1991,
|
||||
"genre": [
|
||||
"action"
|
||||
],
|
||||
"director_id": "string"
|
||||
}
|
||||
content_type: application/json
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
8
.posting/get-director.posting.yaml
Normal file
8
.posting/get-director.posting.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
name: get director
|
||||
url: http://localhost:8000/directors/:uuid
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
path_params:
|
||||
- name: uuid
|
||||
value: 4d07b836-b4ab-4ef9-9b52-469caec6d741
|
||||
19
.posting/get-movie.posting.yaml
Normal file
19
.posting/get-movie.posting.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: get movie
|
||||
url: http://localhost:8000/movies/:uuid
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"title": "point break",
|
||||
"year": 1991,
|
||||
"genre": [
|
||||
"action"
|
||||
],
|
||||
"director_id": "string"
|
||||
}
|
||||
content_type: application/json
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
path_params:
|
||||
- name: uuid
|
||||
value: 70c3c743-c219-40c4-8f5b-ae8444ee8c6a
|
||||
17
.posting/update-director.posting.yaml
Normal file
17
.posting/update-director.posting.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: update director
|
||||
method: PUT
|
||||
url: http://localhost:8000/directors/:uuid
|
||||
body:
|
||||
content: |-
|
||||
{
|
||||
"name": "Ryan Gosling",
|
||||
"birthdate": "12-11-1980",
|
||||
"nationality": "US"
|
||||
}
|
||||
content_type: application/json
|
||||
headers:
|
||||
- name: content-type
|
||||
value: application/json
|
||||
path_params:
|
||||
- name: uuid
|
||||
value: 4d07b836-b4ab-4ef9-9b52-469caec6d741
|
||||
Reference in New Issue
Block a user