Forráskód Böngészése

Create docs for get many games route

Lee Morgan 1 hónapja
szülő
commit
82f3278190
3 módosított fájl, 28 hozzáadás és 0 törlés
  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"

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
docs/redoc-static.html


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott