This repository has been archived by the owner on May 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (38 loc) · 1.87 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Indego History app</title>
</head>
<body>
<h1>Indego History</h1>
<p>
This app was created based on an interview challenge. Code at https://github.com/abea/bike-history. Data available starting 2018-09-16.
</p>
<h2>The Goal</h2>
<blockquote cite="https://github.com/punkave/backend-challenge">
Using MongoDB, Node.js, Express, Bluebird, Lodash and the Linux, Node.js and MongoDB hosting of your choice (see below for hosting details including free options), **create a new API server which accumulates data over time and provides access to historical data for both weather and Indego bike availability, supporting the following queries at minimum.** Note that it is sufficient to store data at hourly intervals.
</blockquote>
<p>
See requirements and more information at https://github.com/punkave/backend-challenge/blob/master/README.md.
</p>
<h2>The App</h2>
<p>
The finish app is currently hosted at https://indego-history.herokuapp.com. There are three formats in which to request data:
</p>
<ul>
<li>
<strong>Snapshot of all stations at a specified time:</strong> https://indego-history.herokuapp.com/api/v1/stations?at=DATETIMEHERE
</li>
<li>
<strong>Snapshot of one station at a specific time:</strong> https://indego-history.herokuapp.com/api/v1/stations/KIOSKIDGOESHERE?at=DATETIMEHERE
</li>
<li>
<strong>Snapshots of one station over a range of times:</strong> https://indego-history.herokuapp.com/api/v1/stations/KIOSKIDGOESHERE?from=DATETIMEHERE&to=DATETIMEHERE&frequency=[daily/hourly] (if frequency is not included, it defaults to hourly)
</li>
</ul>
<p>
Dates should be written in string format like <code>2017-11-01T11:00:00</code>.
</p>
</body>
</html>