-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.http
53 lines (40 loc) · 964 Bytes
/
requests.http
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
### Create a new client
POST http://localhost:3333/clients
Content-Type: application/json
{
"name": "Johnny fontes rabelo",
"telephone": "5523996738213",
"email": "[email protected]",
"passToPass": {},
"observation": "New client",
"plan": "Recorrente",
"date": "2024-07-13T00:00:00Z",
"suporteId": 7,
"updatedAt": "2024-07-13T00:00:00Z"
}
### Get all clients
GET http://localhost:3333/clients
### Get a specific client
GET http://localhost:3333/clients/3
### Update a client
PUT http://localhost:3333/clients/1
Content-Type: application/json
{
"secondPayment": true
}
### Delete a client
DELETE http://localhost:3333/clients/29
###
GET http://localhost:3333/clientsWithSuporte
###
POST http://localhost:3333/suportes
Content-Type: application/json
{
"name": "Luan",
"email": "[email protected]",
"type": "Suporte 1",
"number": "5512978678"
}
###
GET http://localhost:3333/suportes/1/clients
Accept: application/json