From 509e1fdb3d78227adf1f5eae77a01f79119ebb1e Mon Sep 17 00:00:00 2001
From: shwtea <shwetagupta0711754@gmail.com>
Date: Tue, 3 Sep 2024 12:18:35 +0530
Subject: [PATCH] swagger updated

---
 swagger.yaml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 52 insertions(+), 1 deletion(-)

diff --git a/swagger.yaml b/swagger.yaml
index f9fb1ee..0f8c0f6 100644
--- a/swagger.yaml
+++ b/swagger.yaml
@@ -9,6 +9,57 @@ info:
 #     description: Local server
 
 paths:
+  /templates/{page}:
+    get:
+      summary: Get template details of a particular page
+      parameters:
+        - in: path
+          name: page
+          required: true
+          schema:
+            type: string
+          description: The page for which template details are requested.
+      responses:
+        '200':
+          description: Template retrieved successfully
+          content:
+            application/json:
+              schema:
+                type: object
+                properties:
+                  id:
+                    type: string
+                  name:
+                    type: string
+                  desc:
+                    type: string
+                  widgets:
+                    type: array
+                    items:
+                      type: object
+                      properties:
+                        widgetId:
+                          type: string
+                        position:
+                          type: integer
+                        startTime:
+                          type: string
+                          format: date-time
+                        endTime:
+                          type: string
+                          format: date-time
+                  hashId:
+                    type: string
+        '404':
+          description: Template not found
+          content:
+            application/json:
+              schema:
+                type: object
+                properties:
+                  error:
+                    type: string
+
   /widget/allLayout/{page}:
     get:
       summary: Get widget details for a page
@@ -33,7 +84,7 @@ paths:
                       type: string
                     title:
                       type: string
-                    layout:
+                    widget:
                       type: string
                     enable:
                       type: boolean
-- 
GitLab