-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-spec.yaml
More file actions
277 lines (277 loc) · 8.32 KB
/
Copy pathapi-spec.yaml
File metadata and controls
277 lines (277 loc) · 8.32 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
swagger: '2.0'
info:
title: Carleton Sesquicentennial API
description: Content Delivery for the Carleton Sesquicentennial Mobile Apps
version: 0.0.1
host: api.carleton.edu
schemes:
- https
basePath: /1.0
produces:
- application/json
paths:
/geofences:
post:
summary: Geofences close to your location
description: >
The Landmarks endpoint delivers Geofence objects representing points of
interest that are close by and their location
parameters:
- name: request
in: body
schema:
type: object
properties:
geofence:
$ref: '#/definitions/Geofence'
timespan:
$ref: '#/definitions/Timespan'
description: Year from which to collect historical information associated with the landmark (note that it will return closest year to the one given that is more recent than the year given)
description: A current location, a radius in which to search (a geofence) and a timespan with which to limit the search
required: true
tags:
- Landmarks
responses:
'200':
description: An array of geofences
schema:
type: array
items:
$ref: '#/definitions/Landmark'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/landmarkinfo:
post:
summary: Returns information about landmarks that are triggered within the client.
description: >
The landmark information endpoint delivers objects that have information on various points of interest, and are associated by name to geofences.
parameters:
- name: request
in: body
schema:
type: object
properties:
geofences:
type: array
description: An array of the geofences that have been triggered
items:
type: string
timespan:
$ref: '#/definitions/Timespan'
description: Year from which to collect historical information associated with the landmark (note that it will return closest year to the one given that is more recent than the year given)
description: A set of geofences that are triggered and the relevant timespan
required: true
tags:
- Landmarks
responses:
'200':
description: An array of landmarks with information
schema:
type: array
items:
$ref: '#/definitions/LandmarkInfo'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/events:
post:
summary: Returns a list of upcoming event objects
description: >
The upcoming endpoint delivers event objects representing events based on a timestamp.
parameters:
- name: request
in: body
schema:
type: object
properties:
startTime:
type: string
description: The earliest date from which to get data
limit:
type: number
format: integer
description: Number of objects to return
description: latest event to return
required: true
tags:
- Events
responses:
'200':
description: An array of events
schema:
type: array
items:
$ref: '#/definitions/Event'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/feed:
post:
summary: Recent tagged images in the Sesquicentennial social feed
description: "The images endpoint allows users to get images from the Sesquicentennial social feed from the app. \n"
parameters:
- name: request
in: body
schema:
type: object
properties:
limit:
type: number
format: integer
description: 'Limit on the number of images to return, again with the most recent first.'
timestamp:
type: string
description: 'Latest date to return images from, most recent first.'
description: object query for getting images from the feed
required: true
tags:
- Social
responses:
'200':
description: An array of image URLs associated with the time period specified.
schema:
type: array
items:
type: string
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/quest:
post:
summary: Returns quests with a bunch of small challenges to complete.
description: >
The quest endpoint sends quests with a picture, description, title, and multiple wayPoint objects, which in turn have a geofence, a clue, and hint.
parameters:
- name: request
in: body
schema:
type: object
properties:
theme:
type: string
description: A theme for the desired quests
limit:
type: number
format: integer
description: A limit on the number of quests to be sent
tags:
- Quest
responses:
'200':
description: An array of quests
schema:
type: array
items:
$ref: '#/definitions/Waypoint'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
definitions:
Waypoint:
type: object
properties:
clue:
type: string
description: clue on how to get to the next level
hint:
type: string
description: a further clue to help you find the Waypoint
geofence:
$ref: '#/definitions/Geofence'
description: coordinates for the Waypoint
Event:
type: object
properties:
time:
type: string
description: time of event
venue:
type: string
description: human readable location of event
geofence:
$ref: '#/definitions/Geofence'
description: coordinates for venue
Location:
type: object
properties:
latitude:
type: number
format: double
description: Latitude component of location.
longitude:
type: number
format: double
description: Longitude component of location.
Geofence:
type: object
properties:
location:
$ref: '#/definitions/Location'
description: location of the center of the geofence
radius:
type: number
format: double
description: radius in meters of the geofence.
Timespan:
type: object
properties:
startTime:
type: string
format: date
description: start of time range
endTime:
type: string
format: date
description: end of time range
LandmarkInfo:
type: object
properties:
id:
type: number
format: integer
description: A unique identification value for this landmark
name:
type: string
description: Name of the landmark associated with the information
type:
type: string
description: The type of landmark
summary:
type: string
description: A short snippet about the landmark
time:
type: number
format: integer
description: The relevant year
Landmark:
type: object
properties:
id:
type: number
format: integer
description: A unique identification value for this geofence
name:
type: string
description: Name of the landmark associated with this geofence
geofence:
$ref: '#/definitions/Geofence'
description: The geofence information for this landmark
date:
type: string
description: Date associated with the content for this landmark.
Error:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
fields:
type: string