REST API for fetching Swedish counties, municipalities and congregations based on their respective codes.
You will need Leiningen 2.0.0 or above installed.
Start the server with:
lein ring server
Resources are fetched through:
GET /counties
GET /counties/:id
GET /municipalities
GET /municipalities/:id
GET /congregations
GET /congregations/:id
GET /counties
{
"success": true,
"data": {
"01": "Stockholms län",
"03": "Uppsala län",
"04": "Södermanlands län",
"05": "Östergötlands län",
...
}
}
GET /municipalities/0183
{
"success": true,
"data": {
"Sundbyberg"
}
}
GET /municipalities/9876
{
"success": false
}