You are on page 1of 3

# PackageService

This application will provide a web site for a travel package sale. The user
will sign up, log in, or select a vacation package that includes a flight, a
rental car, and a hotel. The flight, rental car, and hotel services are
hosted on a remote site that must be contacted through a REST API Get or Post
method.

## Spring Controller Routes:

Get ("/package") // Display packages

Post ("/package/new") // Process reservation

Get ("/package/reserve") // A new reservation from a form

Get ("/packages") // A new reservation from a form

Get ("/locations") // A new reservation from a form

Get ("/userlogin") // A user enters their username and password

Get ("/usersignup") // A new user signup form

Post ("/userlogin") // A new reservation from a form

Post ("/usersignup") // A new reservation from a form

## API Endpoints

This project does not advertise API Rest controller routes

# Debug println output for PackageController:

### Path
/home

### Output
`this is the debug output: cst438.domain.Package@65a7a30c`

### Path
/package/hotel_search

### Output
`this is the debug output: HotelFind [id=1, hotelId=0, name=La Quinta Inn &
Suites by Wyndham Irvine, arrivalDate=null, departureDate=null,
hotelCity=null, price=0, address=14972 Sand Canyon Ave, Irvine, CA 92618,
type=null, maxPeople=0]`

### Path
/package/car_search

### Output
`this is the debug output: CarFind [id=3, make=Toyota, model=MR2,
fuel=Premium, transmission=Manual 5-spd, year=1989, price=150, city=boston]`

### Path
/package/airline_search

### Output
`Output to be added later...`

### Path
/usercart

### Output
`this is the debug output: HotelFind [id=1, hotelId=0, name=La Quinta Inn &
Suites by Wyndham Irvine, arrivalDate=null, departureDate=null,
hotelCity=null, price=0, address=14972 Sand Canyon Ave, Irvine, CA 92618,
type=null, maxPeople=0]CarFind [id=3, make=Toyota, model=MR2, fuel=Premium,
transmission=Manual 5-spd, year=1989, price=150, city=boston]`

MySQL Database Tables

You might also like