The REST like API Kyrksök powering Kyrksök.se
Python
Latest commit 27fba54 Dec 21, 2016 @Abbe98 Abbe98 Added Random method

README.md

Kyrkosok.se API

Requirements

  • Python 3.5+
  • Flask(pip install flask)
  • Flask RESTful(pip install flask-restful)
  • SQLAlchemy(pip install sqlalchemy)

Database

The SQLite database provided within this repository is created in another repository.

Usage

Get single church by Wikidata ID(exclude Q):

/churches/<string:wikidata>

Search by label:

/churches/label?text=<string:value>

Search within bounding box:

/churches/bbox?south=<float>&east=<float>&north=<float>&west=<float>

Get a set of random churches:

/churches/random?limit=1