-
Notifications
You must be signed in to change notification settings - Fork 0
/
movies.http
54 lines (41 loc) · 788 Bytes
/
movies.http
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
POST http://localhost:5000/movies/
Content-Type: application/json
{
"title": "title",
"description": "description",
"trailer": "trailer",
"year": 1222,
"rating": 1,
"genre_id": 1,
"director_id": 1
}
###
GET http://localhost:5000/movies/
Accept: application/json
###
GET http://localhost:5000/movies/1
Accept: application/json
###
PUT http://localhost:5000/movies/1
Accept: application/json
Content-Type: application/json
{
"title": "GOVNO",
"description": "description",
"trailer": "trailer",
"year": 1222,
"rating": 1,
"genre_id": 1,
"director_id": 1
}
###
DELETE http://localhost:5000/movies/1
Accept: application/json
###
PATCH http://localhost:5000/movies/1
Accept: application/json
Content-Type: application/json
{
"title": "STRASHNO"
}
###