From eab79163cfb971c984053322e9dc94d2d8b80c75 Mon Sep 17 00:00:00 2001 From: Max Martens Date: Mon, 25 Nov 2024 17:03:28 +0100 Subject: [PATCH] First commit, still WIP --- src/openapi/customers/SE-customers.yaml | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/openapi/customers/SE-customers.yaml diff --git a/src/openapi/customers/SE-customers.yaml b/src/openapi/customers/SE-customers.yaml new file mode 100644 index 0000000..6e4a7a8 --- /dev/null +++ b/src/openapi/customers/SE-customers.yaml @@ -0,0 +1,54 @@ +openapi: 3.0.1 +info: + title: Service Engine APIs for Customers + description: >- + Service Engine APIs for HTM Customers. These are NOT the CRUD APIs to access raw data in the database. + To be used by touchpoints to get information about HTM customers. + version: '1.0' +servers: + - url: https://api.integratielaag.nl/abt/serviceengine/customers/1.0 +tags: + - name: ServiceEngine Customers + description: >- + Service Engine APIs for HTM Customers. These are NOT the CRUD APIs to access raw data in the database. + To be used by touchpoints to get information about HTM customers. +paths: + /customers/tokens/{tokenId}/product-instances: + get: + tags: + - ServiceEngine Customers + summary: Get a list of all HTM products instantiated on the given OvPayToken + description: |- + Get a list of all HTM products instantiated on the given OvPayToken. + Only HTM products are returned; GBO does not allow HTM to get information on non-HTM product-instances. + Where relevant, operations to be performed are returned as HATEOAS links per product-instance. + parameters: + - name: tokenId + in: path + required: true + style: simple + description: Id of the OvPayToken to get product-instances for. + schema: + type: integer + example: 1 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProductInstancesResponse' + examples: + getEmptyProductInstances: + summary: No product-instances found on token + value: + Entries: [] +components: + schemas: + TokenProductInstancesResponse: + type: object + required: + - Entries + properties: + Entries: + type: array