-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
29 lines (29 loc) · 871 Bytes
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
openapi: 3.0.0
info:
version: 1.0.0
title: Cards Service
description: A card services in the game cards against humanity with OpenAPI 3.0 specification
paths:
/game:
get:
description: Returns a new game and different game at each call
operationId: Get a new game.
parameters:
- in: query
name: deck
schema:
type: string
description: Optional parameter specify a type of deck (e.g. nsfw)
responses:
"200":
description: Successful handling.
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Game"
"404":
description: Can't find resources
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Error"