Heroku url: https://key-value-tarantool.herokuapp.com/
Path | Method | Body (json) | Description |
---|---|---|---|
/kv | POST | {"key": "Your key", "value": ...your object...} |
Add a new pair if key was not in the database |
/kv/:key | GET | Select pair by key and return result | |
/kv/:key | DELETE | Delete pair if key was in the database | |
/kv/:key | PUT | { "value": ...your new object...} |
Update new pair if the key was in the database |
/info/kv/all_records | GET | Return all pairs in database |
This project requires docker to run.
$ make docker
$ make run
$ pip install requests simplejson # install modules for testing
$ make tests # local tests
$ make heroku-test # test heroku app
$ make stop