cristighr1995 / Holiholic

A trip planner and travel guide application which offers activity suggestions and personalized day plans based on user’s preferences and profile.
Apache License 2.0
2 stars 0 forks source link

[HH-10][PLANNER] Save itinerary in history for a user #10

Closed cristighr1995 closed 5 years ago

cristighr1995 commented 5 years ago

After a user picked one itinerary from the multiple plans, he can chose to save it in the system's history.

This action can be done using a HTTP POST request.

Request example http://localhost:8090/updateHistory and the body something similar to the below json:

{
  "city": "bucharest",
  "uid": "adbf5a778175ee757c34d0eba4e932bc",
  "timeStamp": "3 Jun 2008 11:05",
  "plan": [
    {
      "parkTime": 0,
      "rating": 4.3,
      "mealType": "unknown",
      "needToGetTheCarBack": false,
      "plannedHour": "09:00",
      "type": "starting_point",
      "carPlaceName": "",
      "duration": 0,
      "carPlaceId": -1,
      "needToParkHere": false,
      "modeOfTravel": "driving",
      "name": "Name of the current place",
      "id": -1,
      "timeToNext": 15
    },
    ...
  ]
}