/collector

API server with configurable endpoints and MongoDB backends that does one thing: Collects JSON.

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Collector

A simple API server that does one thing; collect JSON. Multiple API resource paths can be configured, each with it's own MongoDB backend. Collector is effectively an API router for persisting JSON to multiple MongoDB databases and/or collections.

Installation & usage

Setup the virtual env and install dependencies:

$ virtualenv env
$ . env/bin/activate
$ pip install -r requirements.txt

Edit the config.yml file to suit your needs and then either deploy the WSGI file or run python src/server.py. See the usage example provided in example/ for an idea on how things should work out.

License

Simplified BSD. See the LICENSE file for further information.