-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.yml
More file actions
153 lines (153 loc) · 3.54 KB
/
schema.yml
File metadata and controls
153 lines (153 loc) · 3.54 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
openapi: 3.0.3
info:
title: Images API
version: 1.0.0
description: 'Images uploader: generates thumbnails and expiring links'
paths:
/api/v1/images/:
get:
operationId: root_list
security:
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ImageList'
description: ''
post:
operationId: root_create
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ImageCreate'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ImageCreate'
multipart/form-data:
schema:
$ref: '#/components/schemas/ImageCreate'
required: true
security:
- cookieAuth: []
- basicAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/ImageCreate'
description: ''
/api/v1/images/expiring-link/:
get:
operationId: expiring_link_list
tags:
- expiring-link
security:
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ExpiringLinkList'
description: ''
post:
operationId: expiring_link_create
tags:
- expiring-link
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ExpiringLinkCreate'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ExpiringLinkCreate'
multipart/form-data:
schema:
$ref: '#/components/schemas/ExpiringLinkCreate'
required: true
security:
- cookieAuth: []
- basicAuth: []
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/ExpiringLinkCreate'
description: ''
/api/v1/images/expiring-link/{signed_link}/:
get:
operationId: expiring_link_retrieve
parameters:
- in: path
name: signed_link
schema:
type: string
required: true
tags:
- expiring-link
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'200':
description: No response body
components:
schemas:
ExpiringLinkCreate:
type: object
properties:
image:
type: string
format: uuid
expiration_time:
type: integer
maximum: 2147483647
minimum: -2147483648
required:
- expiration_time
- image
ExpiringLinkList:
type: object
properties:
link:
type: string
maxLength: 255
required:
- link
ImageCreate:
type: object
properties:
image:
type: string
format: uri
required:
- image
ImageList:
type: object
properties:
images:
type: string
readOnly: true
required:
- images
securitySchemes:
basicAuth:
type: http
scheme: basic
cookieAuth:
type: apiKey
in: cookie
name: sessionid