-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-collection.json
More file actions
50 lines (50 loc) · 1.57 KB
/
sample-collection.json
File metadata and controls
50 lines (50 loc) · 1.57 KB
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
{
"name": "Sample Requestary Collection",
"requests": [
{
"id": "req_get_users",
"name": "Get Users",
"method": "GET",
"url": "https://api.example.com/users",
"headers": {
"Authorization": "Bearer sample_token_123",
"Accept": "application/json"
}
},
{
"id": "req_create_user",
"name": "Create User",
"method": "POST",
"url": "https://api.example.com/users",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer sample_token_123"
},
"body": "{\n \"name\": \"John Doe\",\n \"email\": \"john@example.com\",\n \"age\": 30\n}",
"auth": {
"type": "bearer",
"token": "sample_token_123"
}
},
{
"id": "req_update_user",
"name": "Update User",
"method": "PUT",
"url": "https://api.example.com/users/123",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer sample_token_123"
},
"body": "{\n \"name\": \"John Smith\",\n \"age\": 31\n}"
},
{
"id": "req_delete_user",
"name": "Delete User",
"method": "DELETE",
"url": "https://api.example.com/users/123",
"headers": {
"Authorization": "Bearer sample_token_123"
}
}
]
}