-
Notifications
You must be signed in to change notification settings - Fork 6
/
swagger.json
76 lines (76 loc) · 1.57 KB
/
swagger.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
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"swagger": "2.0",
"info": {
"description": "API Description",
"title": "Plumber Example API",
"version": "1.0.0"
},
"host": "127.0.0.1:5762",
"schemes": [
"http"
],
"produces": [
"application/json"
],
"paths": {
"/echo": {
"get": {
"summary": " Echo back the input",
"responses": {
"default": {
"description": "Default response."
}
},
"parameters": [
{
"name": "msg",
"description": "The message to echo",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": null
}
},
"/plot": {
"get": {
"summary": " Plot a histogram",
"responses": {
"default": {
"description": "Default response."
}
},
"parameters": [],
"tags": null
}
},
"/sum": {
"post": {
"summary": " Return the sum of two numbers",
"responses": {
"default": {
"description": "Default response."
}
},
"parameters": [
{
"name": "b",
"description": "The second number to add",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "a",
"description": "The first number to add",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": null
}
}
}
}