-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.http
56 lines (45 loc) · 1.08 KB
/
client.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
54
55
56
@baseUrl = http://localhost:3333
@authToken = {{authenticate.response.body.access_token}}
# @name create_organization
POST {{baseUrl}}/orgs
Content-Type: application/json
{
"name": "Organization Name",
"ownerName": "John Doe",
"email": "[email protected]",
"password": "123456",
"phone": "123456789",
"cep": "12345678",
"street": "Organization Street",
"number": "123",
"neighborhood": "Organization Neighborhood",
"city": "Organization City",
"state": "Organization State",
"longitude": 123.456,
"latitude": 123.456
}
###
# @name authenticate
POST {{baseUrl}}/orgs/auth
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456"
}
###
# @name register-pet
POST {{baseUrl}}/orgs/pets
Content-Type: application/json
Authorization: Bearer {{authToken}}
{
"petName": "Pet Name",
"about": "About",
"age": "10",
"size": "10",
"energy_level": "10",
"environment": "10"
}
###
# @name get-pet
GET {{baseUrl}}/pets/e5b4f671-a31a-4696-aed7-cf85069e9413
Content-Type: application/json