RESTful API for MongoDB collections