An HTTP/HTTPS REST API for AntidoteDB, written in CoffeeScript.
$ npm install -g antidote-rest-server
$ antidote-rest-server
$ git clone https://github.com/LightKone/antidote-rest-server.git
$ cd antidote-rest-server
$ npm test
(optionally, if you want to check everything is OK)$ npm install
$ npm start
Then fire up your browser to localhost:3000
Configuration is done through the command line. See below the options and default values.
- Antidote hostname:
--antidote:hostname=localhost
- Antidote port:
--antidote:port=8087
- REST server port:
--webserver:port=3000
There is a small tutorial on the GitHub wiki to help you get started:
Only implementing a subset of the available CRDTs in Antidote:
- GET
/counter/read/:bucket/:key
- GET/PUT
/counter/increment/:bucket/:key/:amount?
GET/integer/read/:bucket/:key
GET/PUT/integer/increment/:bucket/:key/:amount?
GET/PUT/integer/set/:bucket/:key/:value
- GET
/set/read/:bucket/:key
- GET/PUT/POST
/set/add/:bucket/:key/:elem
- GET/DELETE
/set/remove/:bucket/:key/:elem
- GET
/register/read/:bucket/:key
- GET/PUT
/register/set/:bucket/:key/:value
- GET
/mvregister/read/:bucket/:key
- GET/PUT
/mvregister/set/:bucket/:key/:value