simple-kvdb
Very basic Key-Value store with REST API and UI based on BoldDB
Build
A simple build script which pulls the dependency and builds the binary
cd $GOPATH/src/github.com/vigorcrust/simple-kvdb
go run build.go
REST API Usage
List buckets
curl -X GET http://localhost:8081/api/
[{"bucket":"bucket1"}, {"bucket":"bucket2"}]
Create bucket
curl -X POST http://localhost:8081/api/bucket3
Delete bucket
curl -X DELETE http://localhost:8081/api/bucket3
List Key-Value pairs
curl -X GET http://localhost:8081/api/bucket1
[{"key":"key1","value":"value1"},{"key":"key2","value":"value2"}]
Create Key-Value pair
curl -X POST http://localhost:8081/api/bucket1/key1/value1
Delete Key-Value pair
curl -X DELETE http://localhost:8081/api/bucket1/key1
Get value
curl -X GET http://localhost:8081/api/bucket1/key1
{"value":"value1"}