-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
76 lines (75 loc) · 1.81 KB
/
swagger.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
openapi: 3.0.0
# Added by API Auto Mocking Plugin
servers:
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/SoufianeAourinmouche/demo/1.0.0
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/symphony-soufiane/demo/1.0.0
info:
description: This is a simple API
version: "1.0.0"
title: Demo API
contact:
email: soufiane.aourinmouche@symphony.com
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
tags:
- name: beers
description: Beers management
paths:
'/v1/beers':
get:
tags:
- beers
summary: list beers
operationId: listBeers
description: |
List available beers from the brewery
responses:
'200':
description: list of available beers
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Beer'
'/v1/beers/{id}':
get:
tags:
- beers
summary: get single beers
operationId: getBeer
parameters:
- name: id
in: path
required: true
schema:
type: string
description: |
Bla bla bla
responses:
'200':
description: get single beer details
content:
application/json:
schema:
$ref: '#/components/schemas/Beer'
components:
schemas:
Beer:
type: object
required:
- id
- name
- color
properties:
id:
type: string
format: uuid
example: 'd290f1ee-6c54-4b01-90e6-d701748f0851'
name:
type: string
example: Leffe