-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPOSTMAN-Projeto-Grupo 4.postman_collection.json
134 lines (134 loc) · 3.44 KB
/
POSTMAN-Projeto-Grupo 4.postman_collection.json
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
{
"info": {
"_postman_id": "c6fb121a-e008-4cc8-a0ed-51bcae46aad9",
"name": "Projeto - Grupo 4",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Listagem de produtos / Listar produtos com filtros",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8080/api/v1/products?category=Esportes&order=3",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"products"
],
"query": [
{
"key": "category",
"value": "Esportes"
},
{
"key": "freeShipping",
"value": "true",
"disabled": true
},
{
"key": "brand",
"value": "FORTGPRO",
"disabled": true
},
{
"key": "price",
"value": "1.800",
"disabled": true
},
{
"key": "prestige",
"value": "****",
"disabled": true
},
{
"key": "name",
"value": "Chuteira",
"disabled": true
},
{
"key": "order",
"value": "3"
}
]
}
},
"response": []
},
{
"name": "Adicionar lista de produtos",
"request": {
"method": "POST",
"header": [
{
"key": "",
"value": "",
"type": "default"
}
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"productId\": 15,\n \"name\": \"Curso de Bitcoin do Kenyo\",\n \"category\": \"Cursos\",\n \"brand\": \"Kenyo Enterprises\",\n \"price\": 1500,\n \"quantity\": 5,\n \"freeShipping\": true,\n \"prestige\": \"*****\"\n },\n {\n \"productId\": 16,\n \"name\": \"Kit de Poker Profissional do Mauri\",\n \"category\": \"Esportes\",\n \"brand\": \"Mauri Esportes\",\n \"price\": 2500,\n \"quantity\": 5,\n \"freeShipping\": true,\n \"prestige\": \"*****\"\n },\n {\n \"productId\": 17,\n \"name\": \"Playlist da Joice\",\n \"category\": \"Música\",\n \"brand\": \"Joice Records\",\n \"price\": 300,\n \"quantity\": 5,\n \"freeShipping\": true,\n \"prestige\": \"*****\"\n },\n {\n \"productId\": 18,\n \"name\": \"Kit Apresentação onboarding da Michelle\",\n \"category\": \"Software\",\n \"brand\": \"Michelle\",\n \"price\": 500,\n \"quantity\": 5,\n \"freeShipping\": false,\n \"prestige\": \"*****\"\n }\n\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8080/api/v1/products",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"products"
]
}
},
"response": []
},
{
"name": "Criar pedido de compra",
"request": {
"method": "POST",
"header": [
{
"key": "",
"value": "",
"type": "default"
}
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"productId\": 15,\n \"name\": \"Parafusadeira Mercadolivre\",\n \"category\": \"teste\",\n \"brand\": \"Marca boa\",\n \"price\": 500,\n \"quantity\": 5,\n \"freeShipping\": true,\n \"prestige\": \"*\"\n }\n\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8080/api/v1/product",
"host": [
"localhost"
],
"port": "8080",
"path": [
"api",
"v1",
"product"
]
}
},
"response": []
}
]
}