浏览代码

Create docs for get many games route

Lee Morgan 1 月之前
父节点
当前提交
82f3278190
共有 3 个文件被更改,包括 28 次插入0 次删除
  1. 2 0
      docs/openapi.yaml
  2. 26 0
      docs/paths/game/get_many.yaml
  3. 0 0
      docs/redoc-static.html

+ 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


部分文件因为文件数量过多而无法显示