Based on the excellent http://python-eve.org
pip install eve
mongod --dbpath data/db --port 27010
python server.py
0.0.0.0
, remote Google Cloud host: 35.229.18.203
Get all firguns by curl http://<hostname>:5000/firguns
.
Add new firgun by curl -d '[{"category": "eco", "latitude": "23.4254", "longitude": "12.32423", "description": "Cool place!"}]' -H 'Content-Type: application/json' http://<hostname>:5000/firguns