Compare commits
No commits in common. "8fbdd35fd196bc7dac026ec4b3ea16bee52b955a" and "c317949b4138a98e82b79a787d78606b6bda4ab2" have entirely different histories.
8fbdd35fd1
...
c317949b41
1 changed files with 1 additions and 78 deletions
79
OAS3.yml
79
OAS3.yml
|
@ -200,84 +200,6 @@ paths:
|
||||||
'404':
|
'404':
|
||||||
$ref: '#/components/responses/NotFound'
|
$ref: '#/components/responses/NotFound'
|
||||||
|
|
||||||
/document/{id}/{type}:
|
|
||||||
parameters:
|
|
||||||
- in: path
|
|
||||||
name: id
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
description: Entity ID
|
|
||||||
- in: path
|
|
||||||
name: type
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
enum: [application, sepa]
|
|
||||||
description: Type of document to upload
|
|
||||||
- in: header
|
|
||||||
name: Authentication
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
description: Authentication token
|
|
||||||
post:
|
|
||||||
summary: Upload a PDF document for a member
|
|
||||||
description: Note that the entry must be updated with the URI obtained from this call
|
|
||||||
tags:
|
|
||||||
- document
|
|
||||||
requestBody:
|
|
||||||
description: The document
|
|
||||||
content:
|
|
||||||
'application/pdf':
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: binary
|
|
||||||
responses:
|
|
||||||
'201':
|
|
||||||
description: File has been stored ("created") locally, returns the URI for downloading the file
|
|
||||||
content:
|
|
||||||
text/plain:
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
'303':
|
|
||||||
description: The file is already in storage, returns the URI for downloading the file
|
|
||||||
content:
|
|
||||||
text/plain:
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uri
|
|
||||||
'401':
|
|
||||||
$ref: '#/components/responses/AuthenticationRequired'
|
|
||||||
'403':
|
|
||||||
$ref: '#/components/responses/NotAllowed'
|
|
||||||
'405':
|
|
||||||
$ref: '#/components/responses/InvalidInput'
|
|
||||||
'500':
|
|
||||||
$ref: '#/components/responses/InternalError'
|
|
||||||
get:
|
|
||||||
summary: Get a PDF document for a member
|
|
||||||
tags:
|
|
||||||
- document
|
|
||||||
responses:
|
|
||||||
'200':
|
|
||||||
description: Returns PDF data
|
|
||||||
content:
|
|
||||||
'application/pdf':
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: binary
|
|
||||||
'404':
|
|
||||||
$ref: '#/components/responses/NotFound'
|
|
||||||
'401':
|
|
||||||
$ref: '#/components/responses/AuthenticationRequired'
|
|
||||||
'403':
|
|
||||||
$ref: '#/components/responses/NotAllowed'
|
|
||||||
'405':
|
|
||||||
$ref: '#/components/responses/InvalidInput'
|
|
||||||
'500':
|
|
||||||
$ref: '#/components/responses/InternalError'
|
|
||||||
|
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
health:
|
health:
|
||||||
|
@ -314,3 +236,4 @@ components:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
example: error message
|
example: error message
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue