-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApi_collection_for_Postman.json
More file actions
151 lines (151 loc) · 3.72 KB
/
Api_collection_for_Postman.json
File metadata and controls
151 lines (151 loc) · 3.72 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"info": {
"_postman_id": "fjellfilm-api-collection",
"name": "FjellFilm API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get All Movies",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:4200/api/movies",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies"]
}
}
},
{
"name": "Get Movie By ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:4200/api/movies/6",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "6"]
}
}
},
{
"name": "Get Reviews By Movie ID",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:4200/api/movies/6/reviews",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "6", "reviews"]
}
}
},
{
"name": "Add New Movie",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"No Mercy\",\n \"director\": \"Richard Pearce\",\n \"releaseYear\": 1985,\n \"genre\": [\"Drama\", \"Action\"]\n}"
},
"url": {
"raw": "http://localhost:4200/api/movies",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies"]
}
}
},
{
"name": "Update Movie",
"request": {
"method": "PUT",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"title\": \"No Mercy\",\n \"director\": \"Richard Pearce\",\n \"releaseYear\": 1986,\n \"genre\": [\"Drama\", \"Action\", \"Thriller\"]\n}"
},
"url": {
"raw": "http://localhost:4200/api/movies/11",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "11"]
}
}
},
{
"name": "Add Review",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"Avata\",\n \"message\": \"Could not care any less about this movie if I tried. Horrible, boring, and a complete waste of time.\",\n \"rating\": 2\n}"
},
"url": {
"raw": "http://localhost:4200/api/movies/11/reviews",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "11", "reviews"]
}
}
},
{
"name": "Add Another Review",
"request": {
"method": "POST",
"header": [{ "key": "Content-Type", "value": "application/json" }],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"John\",\n \"message\": \"I've seen worse, but this isn't a good movie. Basinger's hotness is the only highlight.\",\n \"rating\": 3\n}"
},
"url": {
"raw": "http://localhost:4200/api/movies/11/reviews",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "11", "reviews"]
}
}
},
{
"name": "Delete Review",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:4200/api/movies/11/reviews/25",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "11", "reviews", "25"]
}
}
},
{
"name": "Delete Movie",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:4200/api/movies/11",
"protocol": "http",
"host": ["localhost"],
"port": "4200",
"path": ["api", "movies", "11"]
}
}
}
]
}