You need to implement the following user story:
As a user, I want to see the trains that fit my travel schedule, So that I can decide what to buy
- Create an HTTP endpoint that will take one input: time in ISO 8601 format,
e.g.
2011-12-03T10:15:30+01:00
- The API should return the next 3 trains from the time provided
- Schedules can be retrieved from the following two endpoints (we need them both):
- The time zone of the schedule is in UTC
- The schedule loops around, i.e. if my input is close to midnight, it should include results from after midnight
- We would like you to not use a database, but store data in memory
- Clone the API: https://github.com/dscottie/simple_api
- Verify the
/status
endpoint
- Change the
S1
endpoint to the following (less reliable): - Can we paralelise the HTTP requests?