BCApis.Countries (bc_apis v0.1.0)

Apis.Countries is a GenServer that manages a cache of countries, obtained from a REST API at https://restcountries.com/v3.1/all, and provides a set of functions to query this cache.

Summary

Functions

all_countries()

all_regions()

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

clear()

countries_of_regions(list_of_regions, min_area, min_population)

farmable_countries(min_area, min_population)

get_country_by_country_code(country_code)

independent_countries(min_population)

random_country()

refresh(is_local \\ true)

start(is_local)

start_link(state)

stop()