From 75d956c64ac0cee5f11d47c1a6048f1f4b8ca2e6 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Mon, 7 Oct 2024 14:04:41 +0200 Subject: [PATCH] DHIL-2644 - Init. --- src/openapi/fiko/fiko-crud.yaml | 68 +++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 src/openapi/fiko/fiko-crud.yaml diff --git a/src/openapi/fiko/fiko-crud.yaml b/src/openapi/fiko/fiko-crud.yaml new file mode 100644 index 0000000..8118dd6 --- /dev/null +++ b/src/openapi/fiko/fiko-crud.yaml @@ -0,0 +1,68 @@ +openapi: "3.0.3" +info: + title: ABT Contracts CRUD APIs + version: "1.0" + description: CRUD APIs for ABT Contract database. These are NOT the functional APIs from Service Engine. +servers: + - url: https://api.integratielaag.nl/v1 +paths: + /transactionitems: + post: + summary: Add a finanicial transaction item. + description: Add a finanicial transaction item. + tags: + - TransactionItem + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + "TBD" + responses: + "201": + description: Created + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + example: + { + "transactionItemId": "afce35b2-1dff-4ace-98d0-4b9ac405c87d" + } +components: + securitySchemes: + bearerToken: + type: http + scheme: bearer + bearerFormat: JWT + schemas: + unavailable: + type: object + rfc9457: + type: object + properties: + type: + type: string + format: url + example: "https://example.com/probs/out-of-credit" + title: + type: string + example: "You do not have enough credit." + detail: + type: string + example: "Your current balance is 30, but that costs 50." + instance: + type: string + example: "/account/12345/msgs/abc" + balance: + type: string + example: "30" + accounts: + type: array + items: + type: string + example: + - "/account/12345" + - "/account/67890"