-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
39 lines (39 loc) · 1.08 KB
/
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
30
31
32
33
34
35
36
37
38
39
openapi: 3.0.0
info:
title: Analytics Service
version: 1.0.0
paths:
/submit:
post:
description: Submit a game outcome.
requestBody:
required: true
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Game"
responses:
"200":
description: Successful handling.
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Result"
"401":
description: Expired or malformed token.
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Error"
"403":
description: Duplicate game submission.
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Error"
"500":
description: Internal Error.
content:
application/json:
schema:
$ref: "../types.yaml#/components/schemas/Error"