-
Notifications
You must be signed in to change notification settings - Fork 3
/
swagger.json
104 lines (104 loc) · 2.95 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"swagger": "2.0",
"info": {
"title": "Names Service",
"description": "A simple REST service in Godot",
"version": "0.0.1"
},
"host": "localhost:3560",
"schemes": [
"http"
],
"basePath": "/",
"produces": [
"application/json"
],
"paths": {
"/user": {
"post": {
"summary": "Add User.",
"parameters": [
{
"name": "user",
"in": "query",
"description": "User name.",
"required": true,
"type": "string"
}
],
"responses": {
"201": {
"description": "User created."
},
"404": {
"description": "Invalid parameters."
}
}
}
},
"/user/{user}": {
"get": {
"summary": "Add User.",
"parameters": [
{
"name": "user",
"in": "path",
"description": "Add user.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "User created."
},
"404": {
"description": "Invalid parameters."
}
}
},
"delete": {
"summary": "Add User.",
"parameters": [
{
"name": "user",
"in": "path",
"description": "Add user.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "User created."
},
"404": {
"description": "Invalid parameters."
}
}
}
},
"/echo": {
"get": {
"summary": "get echo.",
"parameters": [
{
"name": "echo",
"in": "query",
"description": "echo.",
"required": true,
"type": "string"
}
],
"responses": {
"201": {
"description": "echo."
},
"404": {
"description": "Invalid parameters."
}
}
}
}
}
}