REST interface for mongodb