-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.yml
132 lines (132 loc) · 3.53 KB
/
web.yml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
openapi: "3.0.0"
info:
title: 帝國火星曆テーブル
version: "0.0.1"
paths:
/api/calendar.svg:
get:
parameters:
- in: query
name: params
required: true
description: JSON encoded imdt year & month
schema:
type: string
responses:
200:
schema:
type: object
required:
- svg
properties:
svg: { type: object }
/api/datetimes:
get:
parameters:
- in: query
name: params
required: true
description: JSON encoded partial datetimes.
schema:
type: string
responses:
200:
schema:
required:
- grdt
- juld
- delta_t
- tert
- mrls
- imsn
- imdt
properties:
grdt: { $ref: "#/definitions/grdt" }
juld: { $ref: "#/definitions/juld" }
delta_t: { type: number }
tert: { $ref: "#/definitions/tert" }
mrls: { type: number }
mrsd: { $ref: "#/definitions/mrsd" }
imsn: { $ref: "#/definitions/imsn" }
imdt: { $ref: "#/definitions/imdt" }
400:
schema: { $ref: "#/definitions/error" }
/api/description.html:
get:
responses:
200:
schema:
required:
- html
properties:
html: { type: string }
definitions:
datetimes_params:
description: /api/datetimesのparameters
required:
- grdt_timezone
- imdt_timezone
properties:
grdt_timezone:
description:
type: string
examples: "Asia/Tokyo"
imdt_timezone:
description:
type: string
examples: "+00:00"
grdt: { $ref: "#/definitions/grdt" }
juld: { $ref: "#/definitions/juld" }
tert: { $ref: "#/definitions/tert" }
mrsd: { $ref: "#/definitions/mrsd" }
imsn: { $ref: "#/definitions/imsn" }
imdt: { $ref: "#/definitions/imdt" }
error:
description: Error response
required: [errors]
properties:
errors:
type: array
items: { type: string }
grdt:
description: grdt
required: [year, month, day, hour, minute, second]
properties:
year: { type: integer, examples: 1970 }
month: { type: integer, examples: 1 }
day: { type: integer, examples: 1 }
hour: { type: integer, examples: 0 }
minute: { type: integer, examples: 0 }
second: { type: integer, examples: 0 }
juld:
description: juld
required: [day]
properties:
day: { type: number, examples: 2440587.5 }
second: { type: number }
tert:
description: tert
required: [terrestrial_time]
properties:
terrestrial_time: { type: number, examples: 2440587.50047 }
mrsd:
description: mrsd
required: [mars_sol_date]
properties:
mars_sol_date: { type: number, examples: 34127.29552 }
imsn:
description: imsn
required: [imperial_sol_number]
properties:
imperial_sol_number: { type: number, examples: 935321.92052 }
imdt:
description: imdt
required: [year, month, day, hour, minute, second]
properties:
year: { type: integer, examples: 1398 }
month: { type: integer, examples: 23 }
day: { type: integer, examples: 12 }
hour: { type: integer, examples: 22 }
minute: { type: integer, examples: 5 }
second: { type: integer, examples: 31 }