Install and run MongoDB server locally: link
./gradlew build
./gradlew run
curl localhost:9090
curl http://localhost:9090
curl http://localhost:9090/12345
curl -H "Content-Type: application/json" -X DELETE -d '{"id": "12345", "firstName": "Abc", "lastName": "Xyz"}' http://localhost:9090
or
curl -X DELETE http://localhost:9090/12345
curl -H "Content-Type: application/json" -X PUT -d '{"firstName": "new", "lastName": "lastName"}' http://localhost:9090/12345
curl -H "Content-Type: application/json" -X POST -d '{"firstName": "myNew", "lastName": "user"}' http://localhost:9090
You can update on which port should the server listen by updating the server.port in application.properties