forked from flasgger/flasgger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolors_template.yaml
61 lines (61 loc) · 1.35 KB
/
colors_template.yaml
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
---
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
description: This is overrriden
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'