Skip to content

Commit 16a299f

Browse files
committed
test: Atualização do postman para o teste de ordenação.
1 parent f7e47e4 commit 16a299f

File tree

1 file changed

+146
-3
lines changed

1 file changed

+146
-3
lines changed

postman/Virtual Library API.postman_collection.json

Lines changed: 146 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"info": {
3-
"_postman_id": "8d1ce299-e721-4fd5-bd48-3cf6db336c1b",
3+
"_postman_id": "e7ac5907-1165-42cc-aeef-0784e29053b2",
44
"name": "Virtual Library API",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
@@ -25,6 +25,10 @@
2525
},
2626
"method": "GET",
2727
"header": [],
28+
"body": {
29+
"mode": "raw",
30+
"raw": ""
31+
},
2832
"url": {
2933
"raw": "http://localhost:8080/api/v1/books?page=0&size=3",
3034
"protocol": "http",
@@ -71,6 +75,10 @@
7175
},
7276
"method": "GET",
7377
"header": [],
78+
"body": {
79+
"mode": "raw",
80+
"raw": ""
81+
},
7482
"url": {
7583
"raw": "http://localhost:8080/api/v1/books?page=0&size=3&author=contains:Machado&title=contains:Dom",
7684
"protocol": "http",
@@ -125,6 +133,10 @@
125133
},
126134
"method": "GET",
127135
"header": [],
136+
"body": {
137+
"mode": "raw",
138+
"raw": ""
139+
},
128140
"url": {
129141
"raw": "http://localhost:8080/api/v1/ratings?page=0&size=3",
130142
"protocol": "http",
@@ -156,6 +168,10 @@
156168
"request": {
157169
"method": "GET",
158170
"header": [],
171+
"body": {
172+
"mode": "raw",
173+
"raw": ""
174+
},
159175
"url": {
160176
"raw": "http://localhost:8080/api/v1/ratings?page=0&size=5&stars=gte:2:lte:4",
161177
"protocol": "http",
@@ -191,6 +207,10 @@
191207
"request": {
192208
"method": "GET",
193209
"header": [],
210+
"body": {
211+
"mode": "raw",
212+
"raw": ""
213+
},
194214
"url": {
195215
"raw": "http://localhost:8080/api/v1/ratings?page=0&size=3&bookId=5dc4c9734e9b1214ed7a9e3a",
196216
"protocol": "http",
@@ -288,6 +308,10 @@
288308
},
289309
"method": "GET",
290310
"header": [],
311+
"body": {
312+
"mode": "raw",
313+
"raw": ""
314+
},
291315
"url": {
292316
"raw": "http://localhost:8080/api/v1/books/5dc4c9734e9b1214ed7a9e3a",
293317
"protocol": "http",
@@ -310,6 +334,10 @@
310334
"request": {
311335
"method": "GET",
312336
"header": [],
337+
"body": {
338+
"mode": "raw",
339+
"raw": ""
340+
},
313341
"url": {
314342
"raw": "http://localhost:8080/api/v1/ratings/5e3b92162f89a422faa31230",
315343
"protocol": "http",
@@ -388,6 +416,10 @@
388416
},
389417
"method": "GET",
390418
"header": [],
419+
"body": {
420+
"mode": "raw",
421+
"raw": ""
422+
},
391423
"url": {
392424
"raw": "http://localhost:8080/api/v1/ratings?page=0&size=3&bookId=5dc4c9734e9b1214ed7a9e3a",
393425
"protocol": "http",
@@ -641,7 +673,118 @@
641673
}
642674
},
643675
"response": []
676+
},
677+
{
678+
"name": "AllBooksOrderByDesc",
679+
"request": {
680+
"auth": {
681+
"type": "basic",
682+
"basic": [
683+
{
684+
"key": "username",
685+
"value": "admin",
686+
"type": "string"
687+
},
688+
{
689+
"key": "password",
690+
"value": "admin",
691+
"type": "string"
692+
}
693+
]
694+
},
695+
"method": "GET",
696+
"header": [],
697+
"body": {
698+
"mode": "raw",
699+
"raw": ""
700+
},
701+
"url": {
702+
"raw": "http://localhost:8080/api/v1/books?page=0&size=3&author=contains:Machado&orderby=author:desc",
703+
"protocol": "http",
704+
"host": [
705+
"localhost"
706+
],
707+
"port": "8080",
708+
"path": [
709+
"api",
710+
"v1",
711+
"books"
712+
],
713+
"query": [
714+
{
715+
"key": "page",
716+
"value": "0"
717+
},
718+
{
719+
"key": "size",
720+
"value": "3"
721+
},
722+
{
723+
"key": "author",
724+
"value": "contains:Machado"
725+
},
726+
{
727+
"key": "orderby",
728+
"value": "author:desc"
729+
}
730+
]
731+
}
732+
},
733+
"response": []
734+
},
735+
{
736+
"name": "AllRatingOrderBy",
737+
"request": {
738+
"auth": {
739+
"type": "basic",
740+
"basic": [
741+
{
742+
"key": "password",
743+
"value": "admin",
744+
"type": "string"
745+
},
746+
{
747+
"key": "username",
748+
"value": "admin",
749+
"type": "string"
750+
}
751+
]
752+
},
753+
"method": "GET",
754+
"header": [],
755+
"body": {
756+
"mode": "raw",
757+
"raw": ""
758+
},
759+
"url": {
760+
"raw": "http://localhost:8080/api/v1/ratings?page=0&size=5&orderby=stars:asc",
761+
"protocol": "http",
762+
"host": [
763+
"localhost"
764+
],
765+
"port": "8080",
766+
"path": [
767+
"api",
768+
"v1",
769+
"ratings"
770+
],
771+
"query": [
772+
{
773+
"key": "page",
774+
"value": "0"
775+
},
776+
{
777+
"key": "size",
778+
"value": "5"
779+
},
780+
{
781+
"key": "orderby",
782+
"value": "stars:asc"
783+
}
784+
]
785+
}
786+
},
787+
"response": []
644788
}
645-
],
646-
"protocolProfileBehavior": {}
789+
]
647790
}

0 commit comments

Comments
 (0)