init CRUD

This commit is contained in:
Awen Lelu
2025-12-18 17:16:26 +01:00
parent 61433bca35
commit d7bea8e188
30 changed files with 1251 additions and 0 deletions

View 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

View 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

View 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

View File

@@ -0,0 +1,5 @@
name: fetch directors
url: http://localhost:8000/directors
headers:
- name: content-type
value: application/json

View 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

View 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

View 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

View 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