Debian Codegraph @

examples/colors_template.json

raw symbols SCIP
1 {
2 "basePath": "/colors_template_yaml",
3 "definitions": {
4 "Color": {
5 "type": "string"
6 },
7 "Palette": {
8 "properties": {
9 "palette_name": {
10 "items": {
11 "$ref": "#/definitions/Color"
12 },
13 "type": "array"
14 }
15 },
16 "type": "object"
17 }
18 },
19 "info": {
20 "description": "powered by Flasgger and YAML template",
21 "termsOfService": "/tos",
22 "title": "Colors API",
23 "version": "0.0.1"
24 },
25 "paths": {
26 "/colors/{palette}/": {
27 "get": {
28 "consumes": [
29 "application/json"
30 ],
31 "deprecated": true,
32 "description": "This is the description<br/>You can also set 'summary' and 'description' in<br/>specs_dict",
33 "externalDocs": {
34 "description": "Project repository",
35 "url": "http://github.com/rochacbruno/flasgger"
36 },
37 "operationId": "get_colors",
38 "parameters": [
39 {
40 "default": "all",
41 "description": "Which palette to filter?",
42 "enum": [
43 "all",
44 "rgb",
45 "cmyk"
46 ],
47 "in": "path",
48 "name": "palette",
49 "required": true,
50 "type": "string"
51 }
52 ],
53 "produces": [
54 "application/json"
55 ],
56 "responses": {
57 "200": {
58 "description": "A list of colors (may be filtered by palette)",
59 "examples": {
60 "rgb": [
61 "red",
62 "green",
63 "blue"
64 ]
65 },
66 "schema": {
67 "$ref": "#/definitions/Palette"
68 }
69 }
70 },
71 "schemes": [
72 "http",
73 "https"
74 ],
75 "security": {
76 "colors_auth": [
77 "write:colors",
78 "read:colors"
79 ]
80 },
81 "summary": "Example using a dictionary as specification",
82 "tags": [
83 "colors"
84 ]
85 }
86 }
87 },
88 "swagger": "2.0"
89 }