From 0fdb6f417faa8bfb833d0e7e06e61d455f7567d3 Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Fri, 6 Dec 2024 11:52:33 +0100 Subject: [PATCH] update examples --- .../api_schemas_webserver/auth.py | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/models-library/src/models_library/api_schemas_webserver/auth.py b/packages/models-library/src/models_library/api_schemas_webserver/auth.py index 9db5f24edbc..cbef37b4c78 100644 --- a/packages/models-library/src/models_library/api_schemas_webserver/auth.py +++ b/packages/models-library/src/models_library/api_schemas_webserver/auth.py @@ -68,14 +68,14 @@ class ApiKeyCreateRequest(BaseModel): json_schema_extra={ "examples": [ { - "display_name": "test-api-forever", + "displayName": "test-api-forever", }, { - "display_name": "test-api-for-one-day", + "displayName": "test-api-for-one-day", "expiration": 60 * 60 * 24, }, { - "display_name": "test-api-for-another-day", + "displayName": "test-api-for-another-day", "expiration": "24:00:00", }, ] @@ -98,26 +98,26 @@ class ApiKeyCreateResponse(ApiKeyCreateRequest): "examples": [ { "id": "42", - "display_name": "test-api-forever", - "api_base_url": "http://api.osparc.io/v0", - "api_key": "key", - "api_secret": "secret", + "displayName": "test-api-forever", + "apiBaseUrl": "http://api.osparc.io/v0", + "apiKey": "key", + "apiSecret": "secret", }, { "id": "48", - "display_name": "test-api-for-one-day", + "displayName": "test-api-for-one-day", "expiration": 60 * 60 * 24, - "api_base_url": "http://api.sim4life.io/v0", - "api_key": "key", - "api_secret": "secret", + "apiBaseUrl": "http://api.sim4life.io/v0", + "apiKey": "key", + "apiSecret": "secret", }, { "id": "54", "display_name": "test-api-for-another-day", "expiration": "24:00:00", - "api_base_url": "http://api.osparc-master.io/v0", - "api_key": "key", - "api_secret": "secret", + "apiBaseUrl": "http://api.osparc-master.io/v0", + "apiKey": "key", + "apiSecret": "secret", }, ] },