Mongoose REST interface.