-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestAPI.http
42 lines (34 loc) · 1.33 KB
/
testAPI.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
### Buscar todos os passeios
GET http://127.0.0.1:5000/api/v1/passeios?page=3&total-per-page=2 HTTP/1.1
content-type: application/json
### Criar passeio
POST http://127.0.0.1:5000/api/v1/passeios HTTP/1.1
content-type: application/json
{
"schedule_date": "2021-07-29 20:00",
"duration": 60,
"latitude": -22.9780622,
"longitude": 43.199881,
"pets": [
{ "name": "Spike", "breed": "Vira lata" },
{ "name": "Billy", "breed": "Poodle" }
]
}
### Buscar passeio por ID
GET http://127.0.0.1:5000/api/v1/passeios/97ff4b79-36bd-4fb5-8496-7f6630579e44 HTTP/1.1
content-type: application/json
### Deletar passeio
DELETE http://127.0.0.1:5000/api/v1/passeios/67f6d9fe-b101-4108-927a-267faa64d5ef HTTP/1.1
content-type: application/json
### Buscar passeios a partir da data enviada
GET http://127.0.0.1:5000/api/v1/passeios/hoje HTTP/1.1
content-type: application/json
### Verificar a duração de um passeio
GET http://127.0.0.1:5000/api/v1/passeios/7b6283fc-1b88-4396-9650-8abf50a9d7bf/duracao HTTP/1.1
content-type: application/json
### Iniciar o passeio
POST http://127.0.0.1:5000/api/v1/passeios/78863c76-ecbe-4083-91f2-a9f3bb06c472/inicio HTTP/1.1
content-type: application/json
### Finalizar o passeio
POST http://127.0.0.1:5000/api/v1/passeios/78863c76-ecbe-4083-91f2-a9f3bb06c472/fim HTTP/1.1
content-type: application/json