Two plans tested (plan_id=1&user_id=1 and plan_id=2&user_id=1)
GET localhost:8080/TravelPlanner/userplan?plan_id=1&user_id=1 will return a JSON object containing the plan info
POST localhost:8080/TravelPlanner/userplan with given parameters plan_id, planname, and user_id (the user needs to be in the user table) returns an HTTP response with either successful or failed message indicating whether the plan has been saved or not.
A Java class to represent a plan Add/Delete/Update/Select RESTful API