Skip to content

Commit c33f017

Browse files
committed
Added POSTMAN Collection (Docker Port)
1 parent b3278e4 commit c33f017

File tree

1 file changed

+210
-0
lines changed

1 file changed

+210
-0
lines changed
Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
{
2+
"info": {
3+
"_postman_id": "",
4+
"name": "AppSeed Django API GEN (Docker)",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "Get all books",
10+
"request": {
11+
"method": "GET",
12+
"header": [],
13+
"url": {
14+
"raw": "{{base_address}}/api/books/",
15+
"host": [
16+
"{{base_address}}"
17+
],
18+
"path": [
19+
"api",
20+
"books",
21+
""
22+
]
23+
}
24+
},
25+
"response": []
26+
},
27+
{
28+
"name": "Get a book",
29+
"request": {
30+
"method": "GET",
31+
"header": [],
32+
"url": {
33+
"raw": "{{base_address}}/api/books/1/",
34+
"host": [
35+
"{{base_address}}"
36+
],
37+
"path": [
38+
"api",
39+
"books",
40+
"1",
41+
""
42+
]
43+
}
44+
},
45+
"response": []
46+
},
47+
{
48+
"name": "Create a book",
49+
"request": {
50+
"method": "POST",
51+
"header": [
52+
{
53+
"key": "Authorization",
54+
"value": "token YOUR_TOKEN_HERE",
55+
"type": "text"
56+
}
57+
],
58+
"body": {
59+
"mode": "formdata",
60+
"formdata": [
61+
{
62+
"key": "name",
63+
"value": "Harry Potter",
64+
"type": "text"
65+
}
66+
]
67+
},
68+
"url": {
69+
"raw": "{{base_address}}/api/books/",
70+
"host": [
71+
"{{base_address}}"
72+
],
73+
"path": [
74+
"api",
75+
"books",
76+
""
77+
]
78+
}
79+
},
80+
"response": []
81+
},
82+
{
83+
"name": "Update a book",
84+
"request": {
85+
"method": "PUT",
86+
"header": [
87+
{
88+
"key": "Authorization",
89+
"value": "token YOUR_TOKEN_HERE",
90+
"type": "text"
91+
}
92+
],
93+
"body": {
94+
"mode": "formdata",
95+
"formdata": [
96+
{
97+
"key": "name",
98+
"value": "Some Great Book",
99+
"type": "text"
100+
}
101+
]
102+
},
103+
"url": {
104+
"raw": "{{base_address}}/api/books/1/",
105+
"host": [
106+
"{{base_address}}"
107+
],
108+
"path": [
109+
"api",
110+
"books",
111+
"1",
112+
""
113+
]
114+
}
115+
},
116+
"response": []
117+
},
118+
{
119+
"name": "Delete a book",
120+
"request": {
121+
"method": "DELETE",
122+
"header": [
123+
{
124+
"key": "Authorization",
125+
"value": "token YOUR_TOKEN_HERE",
126+
"type": "text"
127+
}
128+
],
129+
"body": {
130+
"mode": "formdata",
131+
"formdata": []
132+
},
133+
"url": {
134+
"raw": "{{base_address}}/api/books/1/",
135+
"host": [
136+
"{{base_address}}"
137+
],
138+
"path": [
139+
"api",
140+
"books",
141+
"1",
142+
""
143+
]
144+
}
145+
},
146+
"response": []
147+
},
148+
{
149+
"name": "Login",
150+
"request": {
151+
"method": "POST",
152+
"header": [],
153+
"body": {
154+
"mode": "formdata",
155+
"formdata": [
156+
{
157+
"key": "username",
158+
"value": "test",
159+
"type": "text"
160+
},
161+
{
162+
"key": "password",
163+
"value": "Pass12__",
164+
"type": "text"
165+
}
166+
]
167+
},
168+
"url": {
169+
"raw": "{{base_address}}/login/jwt/",
170+
"host": [
171+
"{{base_address}}"
172+
],
173+
"path": [
174+
"login",
175+
"jwt",
176+
""
177+
]
178+
}
179+
},
180+
"response": []
181+
}
182+
],
183+
"event": [
184+
{
185+
"listen": "prerequest",
186+
"script": {
187+
"type": "text/javascript",
188+
"exec": [
189+
""
190+
]
191+
}
192+
},
193+
{
194+
"listen": "test",
195+
"script": {
196+
"type": "text/javascript",
197+
"exec": [
198+
""
199+
]
200+
}
201+
}
202+
],
203+
"variable": [
204+
{
205+
"key": "base_address",
206+
"value": "localhost:5085",
207+
"type": "string"
208+
}
209+
]
210+
}

0 commit comments

Comments
 (0)