This is CRUD REST API example geolocation tracking application. The entire application stores data by using Spring Data MongoDB. Communication is done over HTTP. Both request and response are formatted as JSON, and the content type of both is application/json.
mvn clean install
java -jar ./target/geolocation-0.0.1-SNAPSHOT.jar
http://localhost:8181/geolocation
http://localhost:8181/geolocation/{userId}
Geolocation requests are sent using POST to the following URL: http://localhost:8181/geolocation
request body: { "latitude": 9.568012, "longitude": 77.962444 }
request body: { "userId": "5ec67af5689f2d02025bca64", "latitude": 55.8494987, "longitude": 37.683994 }
{ "userId": "5ec67af5689f2d02025bca64", "trackId": "9d7cd1cd-1fb1-48b7-a700-7bfa1f093338", "latitude": -35.307473, "longitude": 149.190486 }
DELETE request to the following URL: http://localhost:8181/geolocation
curl -X POST http://localhost:8181/actuator/shutdown