forked from vredya/reqover
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpets-requests.http
More file actions
59 lines (51 loc) · 859 Bytes
/
pets-requests.http
File metadata and controls
59 lines (51 loc) · 859 Bytes
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
@url = http://localhost:3000/api/v3
### POST pet
POST {{url}}/pet
content-type: application/json
{
"id": 1,
"category": {
"id": 1,
"name": "sdfsdf"
},
"name": "doggie",
"foo": "bar",
"photoUrls": [
"string"
],
"tags": [
{
"id": 1,
"name": "string"
}
],
"status": "available"
}
### GET pet by id
GET {{url}}/pet/1?sdf=345
### PUT pet
PUT {{url}}/pet/1
content-type: application/json
{
"id":1,
"category": {
"name": "test update"
},
"name": "BobUpdate",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "bestTagUpdate"
}
],
"status": "sold"
}
### GET findByStatus
GET {{url}}/pet/findByStatus?status=available
content-type: application/json
### DELETE pet by id
DELETE {{url}}/pet/1
content-type: application/json