From e7ce1605c142e36e2821894adaa9c473e3abe1b7 Mon Sep 17 00:00:00 2001 From: MScarsella Date: Wed, 8 Jan 2025 15:17:00 +0100 Subject: [PATCH] feat: P4ADEV-1826-uploadIngestionFlowFile-open-api (#4) Co-authored-by: mscarsel --- openapi/p4pa-fileshare.openapi.yaml | 61 ++++++++++++++++++----------- 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/openapi/p4pa-fileshare.openapi.yaml b/openapi/p4pa-fileshare.openapi.yaml index 6985af8..b0d3c89 100644 --- a/openapi/p4pa-fileshare.openapi.yaml +++ b/openapi/p4pa-fileshare.openapi.yaml @@ -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