diff --git a/spec.json b/spec.json index 6528f8560d283391d0035b987bd98a6f00dd5dd3..13476f75da78fbce7a4b20cfafb99aa9e0421ca5 100644 --- a/spec.json +++ b/spec.json @@ -547,6 +547,9 @@ "required": true }, "responses": { + "200": { + "description": "Successfully updated the challenge" + }, "401": { "description": "Day is already completed or day outside of range", "content": { @@ -556,9 +559,6 @@ } } } - }, - "200": { - "description": "Successfully updated the challenge" } } } @@ -857,28 +857,28 @@ "required": true }, "responses": { - "200": { - "description": "Successfully logged in", + "404": { + "description": "User not found", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthenticationResponse" + "$ref": "#/components/schemas/ExceptionResponse" } } } }, - "401": { - "description": "Invalid credentials", + "200": { + "description": "Successfully logged in", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ExceptionResponse" + "$ref": "#/components/schemas/AuthenticationResponse" } } } }, - "404": { - "description": "User not found", + "401": { + "description": "Invalid credentials", "content": { "application/json": { "schema": { @@ -2739,6 +2739,10 @@ "type": "integer", "format": "int64" }, + "bannerImage": { + "type": "integer", + "format": "int64" + }, "configuration": { "$ref": "#/components/schemas/ConfigurationDTO" } diff --git a/src/api/core/OpenAPI.ts b/src/api/core/OpenAPI.ts index 213c15d4a7b840e8d13a35f74c2618c13b7c9398..b33daf25d0e3518d35dc91aac288e991b8a7c160 100644 --- a/src/api/core/OpenAPI.ts +++ b/src/api/core/OpenAPI.ts @@ -20,7 +20,7 @@ export type OpenAPIConfig = { }; export const OpenAPI: OpenAPIConfig = { - BASE: 'http://localhost:8080', + BASE: import.meta.env.VITE_APP_API_URL, VERSION: '3.0', WITH_CREDENTIALS: false, CREDENTIALS: 'include', diff --git a/src/api/models/UserUpdateDTO.ts b/src/api/models/UserUpdateDTO.ts index 336ccf437745472a97c2c922f3d7ee7f4dc9f4d5..d1d922cf444e61f26af805484b2fe9c0cc6e5426 100644 --- a/src/api/models/UserUpdateDTO.ts +++ b/src/api/models/UserUpdateDTO.ts @@ -8,6 +8,7 @@ export type UserUpdateDTO = { lastName?: string; email?: string; profileImage?: number; + bannerImage?: number; configuration?: ConfigurationDTO; };