Planner REST Service.
-
Run the application with
mvn -X tomcat7:run
, and ensure it's running by visiting your local server's address (by default localhost:8080/planner.) -
Send a test POST request
$ curl -X POST http://localhost:8080/planner/rest/plan -d '{"event":[{"content":"mission impossible", "type":"MOVIE"},{"content":"sushi","type":"FOOD"}],"requirement":{"start_loc":"94404","travel_mode":"DRIVING"}}'
-
Deploy your application to Tomcat with
$ mvn tomcat7:deploy or $ mvn tomcat7:redeploy