A simple API exercise in Elm.
Features the public IUCN Red List API.
- Loads the list of the available regions for species
- Takes a random region from the list
- Loads the list of all species in the selected region (potentially 1000s of results, so using a hard limit here)
- Filters and displays the results for the mammal class
- Filters the results for Critically Endangered species
- Fetches the conservation measures for all critically endangered species
- Stores the “title”-s of the response in the Species model as concatenated text property.
- Prints/displays the results
- using Random generators
- HTTP requests
- JSON decoding
- passing in flags from JS