Skip to content
/ devdb Public

A simple CRUD HTTP interface (API) with memcached.

License

Notifications You must be signed in to change notification settings

gslin/devdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

devdb

A simple CRUD HTTP interface (API) with memcached.

Installation

You need to set up a memcached server in localhost:11211, then create a virtual host and specify nginx settings:

index index.php index.html;
try_files $uri $uri/ /index.php?$args;

Put index.php into the virtual host document root.

Usage

CRUD operations with curl:

curl https://devdb.example.com/db
curl -X POST -H 'Content-Type: application/json' --data '{"a":"b"}' https://devdb.example.com/db
curl -X DELETE https://devdb.example.com/db/1234567890123456789
curl -X PUT -H 'Content-Type: application/json' --data '{"a":"b"}' https://devdb.example.com/db/1234567890123456789

License

See LICENSE.

About

A simple CRUD HTTP interface (API) with memcached.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages