forked from bangpypers/23-05-2020-flask-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yml
82 lines (82 loc) · 1.7 KB
/
swagger.yml
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
openapi: 3.0.0
info:
title: workshop
version: '1.0'
description: API for an app we build as part of the flask workshop.
servers:
- url: 'http://localhost:5000'
paths:
'/movies/{id}':
get:
summary: Your GET endpoint
tags: []
responses: {}
operationId: get-movies
description: Lists all movies
post:
summary: ''
operationId: post-movies
responses:
'200':
description: OK
description: Takes selected movie and maps it to the current user.
put:
summary: ''
operationId: put-movies
responses:
'200':
description: OK
description: Adds movie to database
delete:
summary: ''
operationId: delete-movies
responses:
'200':
description: OK
description: Removes movie from the database
parameters:
- schema:
type: string
name: id
in: path
required: true
'/users/{id}':
parameters:
- schema:
type: string
name: id
in: path
required: true
get:
summary: Your GET endpoint
tags: []
responses: {}
operationId: get-users-id
description: Get list of users
put:
summary: ''
operationId: put-users-id
responses:
'200':
description: OK
description: Adds a user
components:
schemas:
Movie:
title: Movie
type: object
properties:
id:
type: integer
format: int32
title:
type: string
minLength: 1
User:
title: User
type: object
properties:
id:
type: integer
'':
type: string