RESTFull resources API for a MongoDB database