Эх сурвалжийг харах

Create docs for get many games route

Lee Morgan 1 сар өмнө
parent
commit
82f3278190

+ 2 - 0
docs/openapi.yaml

@@ -60,6 +60,8 @@ paths:
 
   #Game
   /game:
+    get:
+      $ref: "./paths/game/get_many.yaml"
     post:
       $ref: "./paths/game/create.yaml"
   /game/{game_id}:

+ 26 - 0
docs/paths/game/get_many.yaml

@@ -0,0 +1,26 @@
+operationId: gameGetMany
+summary: Get Many
+security:
+  - UserAuth: [tokens]
+description: Retrieve a list of games for the logged in user
+tags: [Game]
+
+responses:
+  "200":
+    description: Games retrieved
+    content:
+      application/json:
+        schema:
+          type: array
+          items:
+            $ref: "#/components/schemas/Game"
+  "400":
+    $ref: "#/components/responses/400"
+  "401":
+    $ref: "#/components/responses/401"
+  "403":
+    $ref: "#/components/responses/403"
+  "404":
+    $ref: "#/components/responses/404"
+  "500":
+    $ref: "#/components/responses/500"

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
docs/redoc-static.html


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно