Skleton of HTTP operations. Query all objects from mongodb. Save an object in mongodb