From 490b7aed510fa2c7793893c3bad912aa1d37f0e0 Mon Sep 17 00:00:00 2001
From: vekaste <vekaste@stud.ntnu.no>
Date: Fri, 3 May 2024 12:36:17 +0200
Subject: [PATCH] feat: Updated spec file

---
 spec.json                       | 26 +++++++++++++++-----------
 src/api/models/UserUpdateDTO.ts |  1 +
 2 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/spec.json b/spec.json
index a86e927..d1922b3 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 336ccf4..d1d922c 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;
 };
 
-- 
GitLab