Skip to content
Snippets Groups Projects
Commit 05386be6 authored by Victor Ekholt Gunrell Kaste's avatar Victor Ekholt Gunrell Kaste
Browse files

Merge branch 'errorFix' into 'main'

feat: Updated spec file

See merge request !94
parents 904a366d 4ea0242e
No related branches found
No related tags found
1 merge request!94feat: Updated spec file
Pipeline #284347 passed with warnings
...@@ -547,6 +547,9 @@ ...@@ -547,6 +547,9 @@
"required": true "required": true
}, },
"responses": { "responses": {
"200": {
"description": "Successfully updated the challenge"
},
"401": { "401": {
"description": "Day is already completed or day outside of range", "description": "Day is already completed or day outside of range",
"content": { "content": {
...@@ -556,9 +559,6 @@ ...@@ -556,9 +559,6 @@
} }
} }
} }
},
"200": {
"description": "Successfully updated the challenge"
} }
} }
} }
...@@ -857,28 +857,28 @@ ...@@ -857,28 +857,28 @@
"required": true "required": true
}, },
"responses": { "responses": {
"200": { "404": {
"description": "Successfully logged in", "description": "User not found",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/AuthenticationResponse" "$ref": "#/components/schemas/ExceptionResponse"
} }
} }
} }
}, },
"401": { "200": {
"description": "Invalid credentials", "description": "Successfully logged in",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/ExceptionResponse" "$ref": "#/components/schemas/AuthenticationResponse"
} }
} }
} }
}, },
"404": { "401": {
"description": "User not found", "description": "Invalid credentials",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
...@@ -2739,6 +2739,10 @@ ...@@ -2739,6 +2739,10 @@
"type": "integer", "type": "integer",
"format": "int64" "format": "int64"
}, },
"bannerImage": {
"type": "integer",
"format": "int64"
},
"configuration": { "configuration": {
"$ref": "#/components/schemas/ConfigurationDTO" "$ref": "#/components/schemas/ConfigurationDTO"
} }
......
...@@ -20,7 +20,7 @@ export type OpenAPIConfig = { ...@@ -20,7 +20,7 @@ export type OpenAPIConfig = {
}; };
export const OpenAPI: OpenAPIConfig = { export const OpenAPI: OpenAPIConfig = {
BASE: 'http://localhost:8080', BASE: import.meta.env.VITE_APP_API_URL,
VERSION: '3.0', VERSION: '3.0',
WITH_CREDENTIALS: false, WITH_CREDENTIALS: false,
CREDENTIALS: 'include', CREDENTIALS: 'include',
......
...@@ -8,6 +8,7 @@ export type UserUpdateDTO = { ...@@ -8,6 +8,7 @@ export type UserUpdateDTO = {
lastName?: string; lastName?: string;
email?: string; email?: string;
profileImage?: number; profileImage?: number;
bannerImage?: number;
configuration?: ConfigurationDTO; configuration?: ConfigurationDTO;
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment