webnesia is a REST interface to Erlang's mnesia. It provides an API and a Web frontend with many similarities to CouchDB.
make sure you have mochiweb installed;
check the symlink to mochiweb source on
deps/;run
make;run
./start-dev.sh;open your browser on http://localhost:8000/_utils/.
Right now, these are the supported methods:
PUT /<table_name>: create a new table namedtable_name.The payload must contain the proposed table schema in the form of a JSON list of values. Example:
["id", "timestamp", "test_field"]POST /<table_name>: insert a new record into the table nametable_nameor edit an existing record.The payload must contain the record data in the form of a JSON key-value pair list. Example:
[{"id": 1, "timestamp": 1289145623708, "test_field": "the brown fox jumps over the lazy dog"}]DELETE /<table_name>: delete the table namedtable_name.DELETE /<table_name>/<record_id>: delete a specific record from the tabletable_name.GET /<table_name>: read information about the tabletable_name.GET /<table_name>/<record_id>: get a specific record from the tabletable_name.GET /<table_name>/_all_records: read all records from tabletable_name.There are two optional parameters:
limit: limit the query to a given number of records;skip: skip a given number of records.
