An example API in sinatra
Database can be found here .
There are available two databases, one is for a local machine with sqlite installed on it and the other for heroku.
The API is located at https://world-cities.herokuapp.com.
The following endpoints are available from the API:
/cities
/cities/:id
/cities/iso2/:iso2