forked from flasgger/flasgger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors_template.json
89 lines (89 loc) · 2.06 KB
/
colors_template.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
{
"basePath": "/colors_template_yaml",
"definitions": {
"Color": {
"type": "string"
},
"Palette": {
"properties": {
"palette_name": {
"items": {
"$ref": "#/definitions/Color"
},
"type": "array"
}
},
"type": "object"
}
},
"info": {
"description": "powered by Flasgger and YAML template",
"termsOfService": "/tos",
"title": "Colors API",
"version": "0.0.1"
},
"paths": {
"/colors/{palette}/": {
"get": {
"consumes": [
"application/json"
],
"deprecated": true,
"description": "This is the description<br/>You can also set 'summary' and 'description' in<br/>specs_dict",
"externalDocs": {
"description": "Project repository",
"url": "http://github.com/rochacbruno/flasgger"
},
"operationId": "get_colors",
"parameters": [
{
"default": "all",
"description": "Which palette to filter?",
"enum": [
"all",
"rgb",
"cmyk"
],
"in": "path",
"name": "palette",
"required": true,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "A list of colors (may be filtered by palette)",
"examples": {
"rgb": [
"red",
"green",
"blue"
]
},
"schema": {
"$ref": "#/definitions/Palette"
}
}
},
"schemes": [
"http",
"https"
],
"security": {
"colors_auth": [
"write:colors",
"read:colors"
]
},
"summary": "Example using a dictionary as specification",
"tags": [
"colors"
]
}
}
},
"swagger": "2.0"
}