-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demo API.json
43 lines (43 loc) · 1.01 KB
/
Demo API.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
{
"swagger" : "2.0",
"host" : "203.48.128.178:8065",
"basePath" : "/demo/v1",
"schemes" : [ "https" ],
"paths" : {
"/light" : {
"get" : {
"description" : "use this to color a light",
"operationId" : "Light",
"summary" : "sets the state of the demo light",
"parameters" : [ {
"description" : "defines the desired color",
"required" : true,
"in" : "query",
"name" : "color",
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "OK"
},
"400" : {
"description" : "Bad Request"
}
}
}
}
},
"info" : {
"title" : "Demo API",
"description" : "APIs used to demonstrate the usefullnes of simple APIs",
"version" : "1.0",
"x-summary" : "collection of demo APIs"
},
"x-axway" : {
"corsEnabled" : true,
"basePaths" : [ "" ],
"serviceType" : "rest",
"deprecated" : false,
"tags" : { }
}
}