README.md 998 Bytes
Newer Older
Aksel Baardsen's avatar
Aksel Baardsen committed
1 2
# Assignment 1

3 4
Assignment 1 in IMT2681 Cloud Technologies:
https://git.gvk.idi.ntnu.no/course/imt2681/imt2681-2019/wikis/Assignment-1
Aksel Baardsen's avatar
Aksel Baardsen committed
5 6 7

Deployed at Heroku:
https://rocky-meadow-62766.herokuapp.com/
Aksel Baardsen's avatar
Aksel Baardsen committed
8

Aksel Baardsen's avatar
Aksel Baardsen committed
9 10
gorilla/mux is used for routing

Aksel Baardsen's avatar
Aksel Baardsen committed
11 12 13 14
NOTE:
- /diag/ needs a trailing '/'
- /country/{xx} does not accept a trailing '/'
- /country/{xx}{?limit} does accept a trailing '/'
Aksel Baardsen's avatar
Aksel Baardsen committed
15
- /species/{speciesKey} does not accept a trailing '/'
16 17
- Heroku stops the application after a certain time, so uptime is often '0' - '3' when you are the first request in a while

Aksel Baardsen's avatar
Aksel Baardsen committed
18
Assumptions/Interpretation of task (where specifications were scarce):
19
- Species 'year' is only asking for the 'year' key, not 'bracketYear' too
20 21
- The specified json values should be string if surrounded by "", and numbers if only '<>' surrounds it (only /diag/'s uptime and /country/'s []speciesKey are numbers)
- This API accepts any two-letter /country/{:countryidentifier}: therefore it should return 502 if 404 is returned by the restcountries API