JDK 1.8 Required
JRE 8 Required
To run service enter following command:
$ java -jar target/redsky_device_tracking_service-1.0-SNAPSHOT.jar
To Build:
- First install maven http://maven.apache.org/install.html
- Run command: $ mvn package
- Run service: $ java -jar target/redsky_device_tracking_service-1.0-SNAPSHOT.jar
Tested with Postman
https://www.getpostman.com
Example Requests
http://localhost:8080/registerPhone?phoneNumber=7736770795&name=iPhone6&phoneType=iPhone
http://localhost:8080/updateLocationCivic?phoneNumber=7736770795&city=chicago&state=Illinois
http://localhost:8080/updateLocationGeo?phoneNumber=7736770795&lat=41.953600&lng=-87.7176
http://localhost:8080/getLastLocation?phoneNumber=7736770795
http://localhost:8080/getLastLocations?phoneNumber=7736770795&numberOfLocations=2