From ab005844a38bbff030cf449ac238a45e12349b3c Mon Sep 17 00:00:00 2001
From: vekaste <vekaste@stud.ntnu.no>
Date: Thu, 2 May 2024 20:28:01 +0200
Subject: [PATCH] feat: updated spec file.

---
 spec.json | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/spec.json b/spec.json
index aaf7188..6dc6c6b 100644
--- a/spec.json
+++ b/spec.json
@@ -411,21 +411,21 @@
           }
         ],
         "responses": {
-          "403": {
-            "description": "Insufficient points to purchase the item",
+          "201": {
+            "description": "Item purchased and added to inventory successfully",
             "content": {
               "application/json": {
-                "schema": {
-                  "type": "string"
-                }
+
               }
             }
           },
-          "201": {
-            "description": "Item purchased and added to inventory successfully",
+          "403": {
+            "description": "Insufficient points to purchase the item",
             "content": {
               "application/json": {
-
+                "schema": {
+                  "type": "string"
+                }
               }
             }
           }
@@ -867,8 +867,8 @@
               }
             }
           },
-          "401": {
-            "description": "Invalid credentials",
+          "404": {
+            "description": "User not found",
             "content": {
               "application/json": {
                 "schema": {
@@ -877,8 +877,8 @@
               }
             }
           },
-          "404": {
-            "description": "User not found",
+          "401": {
+            "description": "Invalid credentials",
             "content": {
               "application/json": {
                 "schema": {
@@ -1590,23 +1590,23 @@
           }
         ],
         "responses": {
-          "200": {
-            "description": "Successfully retrieved the image",
+          "404": {
+            "description": "Image not found",
             "content": {
               "*/*": {
                 "schema": {
-                  "type": "string",
-                  "format": "binary"
+                  "$ref": "#/components/schemas/ExceptionResponse"
                 }
               }
             }
           },
-          "404": {
-            "description": "Image not found",
+          "200": {
+            "description": "Successfully retrieved the image",
             "content": {
               "*/*": {
                 "schema": {
-                  "$ref": "#/components/schemas/ExceptionResponse"
+                  "type": "string",
+                  "format": "binary"
                 }
               }
             }
@@ -2456,10 +2456,10 @@
           "subscriptionLevel": {
             "type": "string"
           },
-          "checkingAccountBBAN": {
+          "checkingAccount": {
             "$ref": "#/components/schemas/BankAccountResponseDTO"
           },
-          "savingsAccountBBAN": {
+          "savingsAccount": {
             "$ref": "#/components/schemas/BankAccountResponseDTO"
           },
           "point": {
-- 
GitLab