DuroDBMS REST server

Introduction

The DuroDBMS REST server durod is a simple HTTP server which supports reading data from a DuroDBMS database in JSON format.

Starting and stopping

To start the server, use:

durod -e dbenv [-p port]

where dbenv is the database environment. The default port is 8888.

To stop the server, use Control-C or send a SIGTERM signal using kill.

Acessing the data

After the server has been started, data can be read from an URI like the following:

http://host[:port]/database/query
where database is the name of a database and query is a Duro D/T query.

Accessing data using Java

Example code:

import java.net.URL;
import net.sf.duro.DSession;

DSession session = DSession.createSession(new URL("http", "localhost", 8888, "/D"));
Object result = session.evaluate("t");

This will read the content of the table t from database D.