-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_api_test.json
More file actions
49 lines (49 loc) · 1.45 KB
/
my_api_test.json
File metadata and controls
49 lines (49 loc) · 1.45 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
{
"name": "My API Test Suite",
"base_url": "https://your-api-domain.com",
"concurrent_requests": 3,
"test_duration_seconds": 30,
"warmup_requests": 2,
"description": "Test suite for my API endpoints",
"endpoints": [
{
"name": "Get Users",
"url": "/api/users",
"method": "GET",
"headers": {
"Authorization": "Bearer your-token-here",
"Content-Type": "application/json"
},
"expected_status_code": 200,
"description": "Get list of users",
"timeout": 10
},
{
"name": "Create User",
"url": "/api/users",
"method": "POST",
"headers": {
"Authorization": "Bearer your-token-here",
"Content-Type": "application/json"
},
"json_data": {
"name": "Test User",
"email": "test@example.com"
},
"expected_status_code": 201,
"description": "Create a new user",
"timeout": 10
},
{
"name": "Get User by ID",
"url": "/api/users/1",
"method": "GET",
"headers": {
"Authorization": "Bearer your-token-here"
},
"expected_status_code": 200,
"description": "Get specific user by ID",
"timeout": 10
}
]
}