Iteration 2: Traveler Interaction - analyze each user story and identify the data and functions required to implement them
User Story:
As a traveler, I should be able to make a trip request by selecting a date, duration, number of travelers, and choosing from a list of destinations. After making these selections, I should see an estimated cost (including a 10% travel agent fee) for the trip. Once I submit the trip request, it should show on my dashboard as "pending" for the travel agency to approve or deny.
Data:
Destinations data (retrieved from the "Get all destinations" endpoint)
Traveler's information (retrieved from the "Get single traveler" endpoint)
Functions:
Retrieve destinations data using the "Get all destinations" endpoint.
Calculate the estimated cost of the trip based on the selected date, duration, number of travelers, and destination.
Handle the submission of trip requests, including sending the new trip data to the "Add new trip" endpoint.
Iteration 2: Traveler Interaction - analyze each user story and identify the data and functions required to implement them
User Story:
As a traveler, I should be able to make a trip request by selecting a date, duration, number of travelers, and choosing from a list of destinations. After making these selections, I should see an estimated cost (including a 10% travel agent fee) for the trip. Once I submit the trip request, it should show on my dashboard as "pending" for the travel agency to approve or deny.
Data:
Destinations data (retrieved from the "Get all destinations" endpoint) Traveler's information (retrieved from the "Get single traveler" endpoint)
Functions:
Retrieve destinations data using the "Get all destinations" endpoint. Calculate the estimated cost of the trip based on the selected date, duration, number of travelers, and destination. Handle the submission of trip requests, including sending the new trip data to the "Add new trip" endpoint.