forked from lieldulev/swagger-to-locustfile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger-spec-for-tests.json
63 lines (63 loc) · 1.59 KB
/
swagger-spec-for-tests.json
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
58
59
60
61
62
63
{
"swagger" : "2.0",
"info" : {
"description" : "Some API Description",
"version" : "1.0",
"title" : "My Cool API"
},
"host" : "subdomain.domain.tld",
"basePath" : "/api/v1",
"schemes" : [ "https" ],
"produces" : [ "application/json" ],
"x-locust-import" : ["time"],
"paths" : {
"/simple/path" : {
"get" : {}
},
"/required/qs/params" : {
"get" : {
"parameters" : [ {
"name" : "some_required_param",
"in" : "query",
"description" : "comma-separated list of numbers",
"required" : true,
"type" : "string",
"default" : "8773,7997,8733,8765"
} ]
}
},
"/path/param/{id}" : {
"get" : {
"parameters" : [ {
"name" : "id",
"in" : "path",
"description" : "The ID of the object.",
"required" : true,
"type" : "number",
"default" : 123,
"format" : "long"
}, {
"name" : "Accept-Language",
"in" : "header",
"description" : "Preferred local of response",
"required" : false,
"type" : "string",
"default" : "en"
} ]
}
},
"/required/qs/params-with-x-locust-value" : {
"get" : {
"parameters" : [ {
"name" : "some_required_timestamp_param",
"in" : "query",
"description" : "Epoch timestamp, default is Now.",
"required" : true,
"type" : "number",
"default" : 1455134652,
"x-locust-value" : "str(int(time.time()))"
} ]
}
}
}
}