-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRotas.txt
104 lines (91 loc) · 1.96 KB
/
Rotas.txt
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
get
http://localhost:8080/clientes
http://localhost:8080/produtos
http://localhost:8080/produtos/1
http://localhost:8080/vendedores
http://localhost:8080/pedidos
http://localhost:8080/clientes/1
http://localhost:8080/usuarios
http://localhost:8080/usuarios/1
POST
http://localhost:8080/clientes
{
"nome": "Marie Curie",
"cpf" : "114.222.333-44",
"telefone": "3030-2023",
"email": "[email protected]"
}
http://localhost:8080/vendedores
{
"nome": "Gregor Mendel"
}
http://localhost:8080/pedidos
{
"total": "xx",
"cliente":
{
"id": 4,
"nome": "Marie Curie",
"cpf" : "114.222.333-44",
"telefone": "3030-2023",
"email": "[email protected]"
},
"vendedor":
{
"id": 1,
"nome": "Gregor Mendel"
}
}
http://localhost:8080/produtos
{
"nome": "Açucar",
"valor": 10,
"qtdEstoque" : 10,
"quantidadeEstoque": 10,
"marca": "Vitarella",
"imgUrl": "xxxxxx",
"descricao": "Feijao bom",
"undVenda": "1 kg",
"categorias": [
{
"id":1
}
]
}
PUT
http://localhost:8080/clientes/1/editar
{
"id": 3,
"nome": "Isaac Newton",
"cpf": "222.222.333-44",
"telefone": "3030-2022",
"email": "[email protected]"
}
http://localhost:8080/produtos/3/editar
{
"nome": "Feijão",
"valor": 10.0,
"qtdEstoque": 15,
"marca": "Vitarella",
"imgUrl": "xxxxxx",
"descricao": "Feijao bom",
"undVenda": "1 kg",
"categorias": [
{
"id": 1
},
{
"id": 2
}
]
}
http://localhost:8080/usuarios/6/editar
{
"nome": "Michael Faraday",
"cpf": "114.222.333-46",
"email": "[email protected]"
}
DELETE
http://localhost:8080/clientes/1/deletar
http://localhost:8080/usuarios/1/deletar
http://localhost:8080/produtos/2/deletar