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