From 8e85614ff580a70637509df51909d25341fd8e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Molt=C3=B3?= Date: Mon, 7 Oct 2024 19:45:30 +0200 Subject: [PATCH] Updated Swagger documentation to match bearer token usage in OSCAR API --- docs/api.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/api.yaml b/docs/api.yaml index 90d5be14..be36ec1a 100644 --- a/docs/api.yaml +++ b/docs/api.yaml @@ -33,6 +33,7 @@ paths: description: List all created services security: - basicAuth: [] + - token: [] tags: - services post: @@ -50,6 +51,7 @@ paths: description: Create a service security: - basicAuth: [] + - token: [] requestBody: content: application/json: @@ -74,6 +76,7 @@ paths: description: Update a service security: - basicAuth: [] + - token: [] requestBody: content: application/json: @@ -108,6 +111,7 @@ paths: operationId: ReadService security: - basicAuth: [] + - token: [] description: Read a service delete: summary: Delete service @@ -124,6 +128,7 @@ paths: description: Delete a service security: - basicAuth: [] + - token: [] tags: - services '/system/logs/{serviceName}': @@ -157,6 +162,7 @@ paths: operationId: ListJobs security: - basicAuth: [] + - token: [] description: List all jobs with their status delete: summary: Delete jobs @@ -173,6 +179,7 @@ paths: description: Delete all jobs from a service. security: - basicAuth: [] + - token: [] parameters: - schema: type: boolean @@ -214,6 +221,7 @@ paths: description: Get the logs from a job security: - basicAuth: [] + - token: [] parameters: - schema: type: boolean @@ -234,6 +242,7 @@ paths: description: Delete a job security: - basicAuth: [] + - token: [] tags: - logs /system/info: @@ -256,6 +265,7 @@ paths: description: Get system info security: - basicAuth: [] + - token: [] /health: get: summary: Health @@ -316,6 +326,7 @@ paths: description: Get system configuration security: - basicAuth: [] + - token: [] '/run/{serviceName}': parameters: - schema: @@ -607,4 +618,6 @@ servers: - url: 'https://localhost' description: 'Local testing' - url: 'https://inference.cloud.ai4eosc.eu' - description: 'AI4EOSC OSCAR cluster' \ No newline at end of file + description: 'AI4EOSC OSCAR cluster' + - url: 'https://inference-walton.cloud.imagine-ai.eu' + description: 'iMagine OSCAR cluster' \ No newline at end of file