-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
43 lines (39 loc) · 988 Bytes
/
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
openapi: 3.0.0
info:
version: 1.0.0
title: File Processor Manager
description: A simple API to receive and publish file metadata on a AWS SQS Queue.
servers:
- url: https://ec2-44-222-68-132.compute-1.amazonaws.com:8080/
# Basic authentication
components:
securitySchemes:
BasicAuth:
type: http
scheme: basic
security:
- BasicAuth: []
paths:
/api/files/upload:
post:
description: Publish file metadata to a AWS SQS Queue
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
filename:
type: string
fileSize:
type: integer
fileType:
type: string
userId:
type: string
email:
type: string
responses:
'200':
description: File uploaded successfully.