From 55ee26d3d77004c122d9ce95ba90f8f75150e230 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:41:27 +0700 Subject: [PATCH] chore: updated swagger gen --- Services/server/src/swagger.json | 36 +++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/Services/server/src/swagger.json b/Services/server/src/swagger.json index f2f9970..4bcff55 100644 --- a/Services/server/src/swagger.json +++ b/Services/server/src/swagger.json @@ -1116,7 +1116,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ตู้เอกสาร 1" }, { "in": "path", @@ -1124,7 +1125,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ลิ้นชัก 1" } ] }, @@ -1158,7 +1160,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ตู้เอกสาร 1" }, { "in": "path", @@ -1166,7 +1169,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ลิ้นชัก 1" } ], "requestBody": { @@ -1176,7 +1180,8 @@ "schema": { "properties": { "name": { - "type": "string" + "type": "string", + "example": "แฟ้ม 1" } }, "required": [ @@ -1217,7 +1222,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ตู้เอกสาร 1" }, { "in": "path", @@ -1225,7 +1231,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ลิ้นชัก 1" }, { "in": "path", @@ -1233,7 +1240,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "แฟ้ม 1" } ], "requestBody": { @@ -1243,7 +1251,8 @@ "schema": { "properties": { "name": { - "type": "string" + "type": "string", + "example": "แฟ้มใหม่" } }, "required": [ @@ -1279,7 +1288,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ตู้เอกสาร 1" }, { "in": "path", @@ -1287,7 +1297,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "ลิ้นชัก 1" }, { "in": "path", @@ -1295,7 +1306,8 @@ "required": true, "schema": { "type": "string" - } + }, + "example": "แฟ้ม 1" } ] }