-
Notifications
You must be signed in to change notification settings - Fork 0
/
open_api.yaml
64 lines (64 loc) · 1.56 KB
/
open_api.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
openapi: 3.0.1
info:
title: Busy-Today API
description: API description for Busy-Today backend gate.
version: 1.0.0
paths:
/days:
get:
summary: List of stored days.
description: Returns a list of stored days with people's declarations.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/DaysResponse"
examples:
example:
$ref: "#/components/examples/DaysResponseExample"
components:
schemas:
DaysResponse:
type: object
required:
- days
properties:
days:
type: array
items:
$ref: "#/components/schemas/Day"
Day:
type: object
required:
- date
properties:
date:
type: string
format: date-time
people:
type: array
items:
$ref: "#/components/schemas/Person"
Person:
type: object
required:
- name
- declaration
properties:
name:
type: string
declaration:
type: string # todo: declaration enum/string/etc?
examples:
DaysResponseExample:
value:
days:
- date: "2021-08-29T00:00:00Z"
people:
- name: "Xavrax"
declaration: "free"
- name: "Other"
declaration: "busy"
- date: "2021-08-30T00:00:00Z"