소스 검색

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


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.