-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
80 lines (76 loc) · 1.76 KB
/
openapi.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
77
78
79
80
openapi: 3.0.0
info:
title: S3 Backend Service API
version: 1.0.0
servers:
- url: http://localhost:3000
description: Local server
paths:
/upload:
post:
summary: Upload a file to S3
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: File uploaded successfully
'400':
description: Bad request
/files/{fileName}:
get:
summary: Download a file from S3
parameters:
- in: path
name: fileName
required: true
schema:
type: string
responses:
'200':
description: File retrieved successfully
'404':
description: File not found
put:
summary: Update an existing file in S3
parameters:
- in: path
name: fileName
required: true
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
'200':
description: File updated successfully
'400':
description: Bad request
delete:
summary: Delete a file from S3
parameters:
- in: path
name: fileName
required: true
schema:
type: string
responses:
'200':
description: File deleted successfully
'404':
description: File not found