Skip to content

Commit

Permalink
feat: P4ADEV-1826-uploadIngestionFlowFile-open-api (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: mscarsel <[email protected]>
  • Loading branch information
MScarsella and mscarsel authored Jan 8, 2025
1 parent 541621e commit e7ce160
Showing 1 changed file with 38 additions and 23 deletions.
61 changes: 38 additions & 23 deletions openapi/p4pa-fileshare.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,43 @@ info:
description: Api and Models
version: "1.0.0"
paths:
/api/v1/greet:
get:
summary: "Hello World"
description: "Sample endpoint that return greetings"
/ingestionflowfiles/{organizationId}:
post:
tags:
- ingestion-flow-file
summary: uploadIngestionFlowFile
description: Service to store an ingestion flow file
operationId: uploadIngestionFlowFile
parameters:
- name: organizationId
in: path
required: true
schema:
type: integer
format: int64
- name: ingestionFlowFileType
in: query
required: true
schema:
type: string
enum:
- RECEIPT
- PAYMENTS_REPORTING
- OPI
- TREASURY_CSV
- TREASURY_XLS
- TREASURY_POSTE
requestBody:
content:
'multipart/form-data':
schema:
required:
- ingestionFlowFile
type: object
properties:
ingestionFlowFile:
type: string
format: binary
responses:
'200':
description: "Success"
content:
application/json:
schema:
type: object
properties:
message:
type: string
example: "Hello, World!"
'500':
description: "Internal Server Error"
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "Internal Server Error"
description: OK

0 comments on commit e7ce160

Please sign in to comment.