From 381dcc3b23f5fb32513950ecbe240adfdacdaf37 Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 Date: Fri, 20 Dec 2024 15:44:10 +0100 Subject: [PATCH] openapi specs --- api/specs/web-server/openapi.py | 1 + .../api/v0/openapi.yaml | 115 ++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/api/specs/web-server/openapi.py b/api/specs/web-server/openapi.py index 6c3bc639fb4..cfcaf183591 100644 --- a/api/specs/web-server/openapi.py +++ b/api/specs/web-server/openapi.py @@ -38,6 +38,7 @@ "_long_running_tasks", "_licensed_items", "_licensed_items_purchases", + "_licensed_items_checkouts", "_metamodeling", "_nih_sparc", "_nih_sparc_redirections", diff --git a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml index 5e20d12a5ab..3f547af4b79 100644 --- a/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml +++ b/services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml @@ -3252,6 +3252,121 @@ paths: schema: $ref: '#/components/schemas/EnvelopedError' description: Bad Request + /v0/wallets/{wallet_id}/licensed-items-checkouts: + get: + tags: + - licenses + - wallets + summary: List Licensed Item Checkouts For Wallet + operationId: list_licensed_item_checkouts_for_wallet + parameters: + - name: wallet_id + in: path + required: true + schema: + type: integer + exclusiveMinimum: true + title: Wallet Id + minimum: 0 + - name: order_by + in: query + required: false + schema: + type: string + contentMediaType: application/json + contentSchema: {} + default: '{"field":"started_at","direction":"desc"}' + title: Order By + - name: limit + in: query + required: false + schema: + type: integer + default: 20 + title: Limit + - name: offset + in: query + required: false + schema: + type: integer + default: 0 + title: Offset + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Page_LicensedItemPurchaseGet_' + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Not Found + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Forbidden + '402': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Payment Required + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Bad Request + /v0/licensed-items-checkouts/{licensed_item_checkout_id}: + get: + tags: + - licenses + summary: Get Licensed Item Checkout + operationId: get_licensed_item_checkout + parameters: + - name: licensed_item_checkout_id + in: path + required: true + schema: + type: string + format: uuid + title: Licensed Item Checkout Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/Envelope_LicensedItemPurchaseGet_' + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Not Found + '403': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Forbidden + '402': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Payment Required + '400': + content: + application/json: + schema: + $ref: '#/components/schemas/EnvelopedError' + description: Bad Request /v0/projects/{project_uuid}/checkpoint/{ref_id}/iterations: get: tags: