This repository was archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yaml
107 lines (103 loc) · 2.65 KB
/
swagger.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
swagger: '2.0'
info:
version: "1.0"
title: 'シス研人数出る蔵'
description: 'シス研の部室にいる人の人数を教えてくれる'
tags:
- name: "people"
- name: "graph"
paths:
/people:
get:
tags:
- "people"
summary: "今部屋にいる人数を返す"
description: ""
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: 'response'
schema:
type: 'object'
properties:
status:
type: 'string'
example: '200 OK'
people:
type: 'number'
date:
type: 'string'
format: 'yyyy-mm-dd hh:mm'
example: '2021-07-22 20:55'
500:
description: 'response'
schema:
type: 'object'
properties:
status:
type: 'string'
example: '500 INTERNAL SERVER ERROR'
message:
type: 'string'
example: 'ERROR: Failed to run detect.py.'
/graph:
get:
tags:
- "graph"
summary: "グラフの表示に必要なデータを返す"
description: ""
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: 'response'
schema:
type: 'object'
properties:
status:
type: 'string'
example: '200 OK'
monday:
type: 'array'
items:
type: 'integer'
tuesday:
type: 'array'
items:
type: 'integer'
wednesday:
type: 'array'
items:
type: 'integer'
thursday:
type: 'array'
items:
type: 'integer'
friday:
type: 'array'
items:
type: 'integer'
saturday:
type: 'array'
items:
type: 'integer'
sunday:
type: 'array'
items:
type: 'integer'
500:
description: 'response'
schema:
type: 'object'
properties:
status:
type: 'string'
example: '500 INTERNAL SERVER ERROR'
message:
type: 'string'
example: 'ERROR: Failed to run detect.py.'