An attempt to a REST-API in Java (Spring) with MongoDB