diff --git a/spec.json b/spec.json index a86e9275db55936df12b800a4318eea02621ff20..d1922b3320e4f8268d207851b5c510f29c3f30f4 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/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; };