- POST to create an entry in the database
curl --header "Content-Type: application/json" \
--request POST \
--data '{"group":"bootcamp","name":"city","value":"Quito"}' \
http://localhost:8080/metadata
- GET an entry posted in step 1
curl http://localhost:8080/metadata/{id-received-in-post-response}
-
src/main/java/org/boot/services/metadata/InMemoryMongoDB.java comment @Configuration on line # 8
-
src/main/resources/application.properties comment out line 24 uncomment line 25 (remember the name of the mongodb server or change it as you like)