REST API for mongo