-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathLocalHost (Python backend).postman_collection.json
85 lines (85 loc) · 1.67 KB
/
LocalHost (Python backend).postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"info": {
"_postman_id": "6bd1579e-a938-4eca-8971-99d5cde802be",
"name": "LocalHost (Python backend)",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
"_exporter_id": "30028377"
},
"item": [
{
"name": "Check if running",
"request": {
"method": "GET",
"header": [],
"url": "http://127.0.0.1:5000"
},
"response": []
},
{
"name": "get all films",
"request": {
"method": "GET",
"header": [],
"url": "http://127.0.0.1:5000/films"
},
"response": []
},
{
"name": "Get 1 film",
"request": {
"method": "GET",
"header": [],
"url": "http://127.0.0.1:5000/film/5"
},
"response": []
},
{
"name": "Insert film",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"title\": \"The little mermaid\", \"description\": \"Film over zeemermin\"}"
},
"url": "http://127.0.0.1:5000/film/create"
},
"response": []
},
{
"name": "Insert User",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"first_name\": \"Jan\", \"last_name\": \"de Tester\"}"
},
"url": "http://127.0.0.1:5000/user/create"
},
"response": []
},
{
"name": "Insert ranking",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"film_id\": 5, \"rank\": 8, \"ranked_by\": 12 }"
},
"url": "http://127.0.0.1:5000/ranking/rank"
},
"response": []
},
{
"name": "Delete film",
"request": {
"method": "DELETE",
"header": [],
"url": "http://127.0.0.1:5000/film/delete/4"
},
"response": []
}
]
}