Skip to content

Commit 6b7e1c5

Browse files
committed
Update POSTMAN sample (books)
1 parent 15e3985 commit 6b7e1c5

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

media/api-books.postman_collection

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,123 +7,123 @@
77
},
88
"item": [
99
{
10-
"name": "Get all cities",
10+
"name": "Get all books",
1111
"request": {
1212
"method": "GET",
1313
"header": [],
1414
"url": {
15-
"raw": "{{base_address}}/api/cities/",
15+
"raw": "{{base_address}}/api/books/",
1616
"host": [
1717
"{{base_address}}"
1818
],
1919
"path": [
2020
"api",
21-
"cities",
21+
"books",
2222
""
2323
]
2424
}
2525
},
2626
"response": []
2727
},
2828
{
29-
"name": "Get a city",
29+
"name": "Get a book",
3030
"request": {
3131
"method": "GET",
3232
"header": [],
3333
"url": {
34-
"raw": "{{base_address}}/api/cities/2/",
34+
"raw": "{{base_address}}/api/books/1/",
3535
"host": [
3636
"{{base_address}}"
3737
],
3838
"path": [
3939
"api",
40-
"cities",
41-
"2",
40+
"books",
41+
"1",
4242
""
4343
]
4444
}
4545
},
4646
"response": []
4747
},
4848
{
49-
"name": "Create a city",
49+
"name": "Create a book",
5050
"request": {
5151
"method": "POST",
5252
"header": [
5353
{
5454
"key": "Authorization",
55-
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJpbml0X2RhdGUiOjE2NjMzNzg4MDJ9.B7CDGwxSZZzfYSniaAHMGzVjC6-DGdeFqt1EoWiO6zw",
55+
"value": "YOUR_TOKEN_HERE",
5656
"type": "text"
5757
}
5858
],
5959
"body": {
6060
"mode": "formdata",
6161
"formdata": [
6262
{
63-
"key": "name",
64-
"value": "Paris",
63+
"key": "title",
64+
"value": "Harry Potter",
6565
"type": "text"
6666
}
6767
]
6868
},
6969
"url": {
70-
"raw": "{{base_address}}/api/cities/",
70+
"raw": "{{base_address}}/api/books/",
7171
"host": [
7272
"{{base_address}}"
7373
],
7474
"path": [
7575
"api",
76-
"cities",
76+
"books",
7777
""
7878
]
7979
}
8080
},
8181
"response": []
8282
},
8383
{
84-
"name": "Update a city",
84+
"name": "Update a book",
8585
"request": {
8686
"method": "PUT",
8787
"header": [
8888
{
8989
"key": "Authorization",
90-
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJpbml0X2RhdGUiOjE2NjMzNzg4MDJ9.B7CDGwxSZZzfYSniaAHMGzVjC6-DGdeFqt1EoWiO6zw",
90+
"value": "YOUR_TOKEN_HERE",
9191
"type": "text"
9292
}
9393
],
9494
"body": {
9595
"mode": "formdata",
9696
"formdata": [
9797
{
98-
"key": "name",
99-
"value": "London",
98+
"key": "title",
99+
"value": "Harry Potter UPD",
100100
"type": "text"
101101
}
102102
]
103103
},
104104
"url": {
105-
"raw": "{{base_address}}/api/cities/2/",
105+
"raw": "{{base_address}}/api/books/1/",
106106
"host": [
107107
"{{base_address}}"
108108
],
109109
"path": [
110110
"api",
111-
"cities",
112-
"2",
111+
"books",
112+
"1",
113113
""
114114
]
115115
}
116116
},
117117
"response": []
118118
},
119119
{
120-
"name": "Delete a city",
120+
"name": "Delete a book",
121121
"request": {
122122
"method": "DELETE",
123123
"header": [
124124
{
125125
"key": "Authorization",
126-
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJpbml0X2RhdGUiOjE2NjMzNzg4MDJ9.B7CDGwxSZZzfYSniaAHMGzVjC6-DGdeFqt1EoWiO6zw",
126+
"value": "YOUR_TOKEN_HERE",
127127
"type": "text"
128128
}
129129
],
@@ -132,14 +132,14 @@
132132
"formdata": []
133133
},
134134
"url": {
135-
"raw": "{{base_address}}/api/cities/2/",
135+
"raw": "{{base_address}}/api/books/1/",
136136
"host": [
137137
"{{base_address}}"
138138
],
139139
"path": [
140140
"api",
141-
"cities",
142-
"2",
141+
"books",
142+
"1",
143143
""
144144
]
145145
}
@@ -156,12 +156,12 @@
156156
"formdata": [
157157
{
158158
"key": "username",
159-
"value": "macho",
159+
"value": "test",
160160
"type": "text"
161161
},
162162
{
163163
"key": "password",
164-
"value": "M8K3Dkt4fhnHEa5",
164+
"value": "pass",
165165
"type": "text"
166166
}
167167
]

0 commit comments

Comments
 (0)