-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobservedtimes-v1.discovery
More file actions
353 lines (353 loc) · 8.08 KB
/
observedtimes-v1.discovery
File metadata and controls
353 lines (353 loc) · 8.08 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
{
"kind": "discovery#rpcDescription",
"etag": "\"H01Z-1ikbwOw463Un2bFZHenx1g/ZOQcJAqRuON9q5A68g7m9OQoc8I\"",
"discoveryVersion": "v1",
"id": "observedtimes:v1",
"name": "observedtimes",
"version": "v1",
"description": "ObservedTimes API v1. This API allows the GET method to get a collection of observed times since the last time the user asked for a list and a POST method to record new times",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"protocol": "rpc",
"rootUrl": "https://rowtime-26.appspot.com/_ah/api/",
"rpcUrl": "https://rowtime-26.appspot.com/_ah/api/rpc",
"rpcPath": "/_ah/api/rpc",
"parameters": {
"alt": {
"type": "string",
"description": "Data format for the response.",
"default": "json",
"enum": [
"json"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
],
"location": "query"
},
"fields": {
"type": "string",
"description": "Selector specifying which fields to include in a partial response.",
"location": "query"
},
"key": {
"type": "string",
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query"
},
"oauth_token": {
"type": "string",
"description": "OAuth 2.0 token for the current user.",
"location": "query"
},
"prettyPrint": {
"type": "boolean",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"location": "query"
},
"quotaUser": {
"type": "string",
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
"location": "query"
},
"userIp": {
"type": "string",
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
"location": "query"
}
},
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/userinfo.email": {
"description": "View your email address"
}
}
}
},
"schemas": {
"RowTimePackageClockSyncReply": {
"id": "RowTimePackageClockSyncReply",
"type": "object",
"description": "used to reply with the server time and comparison to the client time",
"properties": {
"client_time": {
"type": "string",
"format": "date-time"
},
"diff_in_ms": {
"type": "number",
"format": "double"
},
"server_time": {
"type": "string",
"format": "date-time"
}
}
},
"RowTimePackageClockSyncRequest": {
"id": "RowTimePackageClockSyncRequest",
"type": "object",
"description": "used to store the request for a comparison of time between the server and the client",
"properties": {
"client_time": {
"type": "string",
"format": "date-time"
}
}
},
"RowTimePackageCrew": {
"id": "RowTimePackageCrew",
"type": "object",
"description": "used to store the crew information",
"properties": {
"category": {
"type": "string"
},
"cox": {
"type": "boolean"
},
"crew_id": {
"type": "string"
},
"crew_name": {
"type": "string"
},
"crew_number": {
"type": "string",
"format": "int64"
},
"division": {
"type": "string",
"format": "int64"
},
"end_time_local": {
"type": "string",
"format": "date-time"
},
"pic_file": {
"type": "string"
},
"rower_count": {
"type": "string",
"format": "int64"
},
"stages": {
"type": "array",
"description": "used to store the stages of the specific event to put in the CrewList message",
"items": {
"$ref": "RowTimePackageStage"
}
},
"start_time_local": {
"type": "string",
"format": "date-time"
}
}
},
"RowTimePackageCrewList": {
"id": "RowTimePackageCrewList",
"type": "object",
"properties": {
"crews": {
"type": "array",
"description": "used to store the crew information",
"items": {
"$ref": "RowTimePackageCrew"
}
},
"event_id": {
"type": "string"
}
}
},
"RowTimePackageEvent": {
"id": "RowTimePackageEvent",
"type": "object",
"description": "used to store the event information",
"properties": {
"event_date": {
"type": "string",
"format": "date-time"
},
"event_desc": {
"type": "string"
},
"event_id": {
"type": "string"
},
"event_name": {
"type": "string"
}
}
},
"RowTimePackageEventList": {
"id": "RowTimePackageEventList",
"type": "object",
"properties": {
"events": {
"type": "array",
"description": "used to store the event information",
"items": {
"$ref": "RowTimePackageEvent"
}
}
}
},
"RowTimePackageObservedTime": {
"id": "RowTimePackageObservedTime",
"type": "object",
"description": "used to store an observered time from a user for a specific Crew.",
"properties": {
"crew": {
"type": "string",
"format": "int64"
},
"event_id": {
"type": "string"
},
"obs_type": {
"type": "string",
"format": "int64"
},
"stage": {
"type": "string",
"format": "int64"
},
"time": {
"type": "string",
"format": "date-time"
},
"time_id": {
"type": "string"
},
"timestamp": {
"type": "string",
"format": "date-time"
}
}
},
"RowTimePackageObservedTimeList": {
"id": "RowTimePackageObservedTimeList",
"type": "object",
"description": "Used to provide a list of Observed times since last request for a specific event",
"properties": {
"event_id": {
"type": "string"
},
"last_timestamp": {
"type": "string",
"format": "date-time"
},
"times": {
"type": "array",
"description": "used to store an observered time from a user for a specific Crew.",
"items": {
"$ref": "RowTimePackageObservedTime"
}
}
}
},
"RowTimePackageStage": {
"id": "RowTimePackageStage",
"type": "object",
"description": "used to store the stages of the specific event to put in the CrewList message",
"properties": {
"label": {
"type": "string"
},
"stage_index": {
"type": "string",
"format": "int64"
}
}
}
},
"methods": {
"observedtimes.clock.clockcheck": {
"id": "observedtimes.clock.clockcheck",
"parameters": {
"resource": {
"$ref": "RowTimePackageClockSyncRequest"
}
},
"parameterOrder": [
"resource"
],
"returns": {
"$ref": "RowTimePackageClockSyncReply"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
},
"observedtimes.crew.list": {
"id": "observedtimes.crew.list",
"allowGet": true,
"parameters": {
"event_id": {
"type": "string"
}
},
"returns": {
"$ref": "RowTimePackageCrewList"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
},
"observedtimes.event.list": {
"id": "observedtimes.event.list",
"allowGet": true,
"parameters": {
"search_string": {
"type": "string"
}
},
"returns": {
"$ref": "RowTimePackageEventList"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
},
"observedtimes.times.listtimes": {
"id": "observedtimes.times.listtimes",
"allowGet": true,
"parameters": {
"event_id": {
"type": "string"
},
"last_timestamp": {
"type": "string"
}
},
"returns": {
"$ref": "RowTimePackageObservedTimeList"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
},
"observedtimes.times.timecreate": {
"id": "observedtimes.times.timecreate",
"parameters": {
"resource": {
"$ref": "RowTimePackageObservedTime"
}
},
"parameterOrder": [
"resource"
],
"returns": {
"$ref": "RowTimePackageObservedTime"
},
"scopes": [
"https://www.googleapis.com/auth/userinfo.email"
]
}
}
}