-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathswagger.json
More file actions
42 lines (41 loc) · 887 Bytes
/
swagger.json
File metadata and controls
42 lines (41 loc) · 887 Bytes
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
{
"swagger": "2.0",
"info": {
"title": "Sample API",
"description": "A sample API that demonstrates how to use Flask-SwaggerUI.",
"version": "1.0"
},
"basePath": "/api",
"schemes": [
"http"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/hello": {
"get": {
"summary": "Returns a simple greeting message.",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Successful response.",
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}