Skip to content

ScaleBnB/calendar

Repository files navigation

Reservation API Documentation

  • URL: /property/:propertyId/reservation

    • Description: Route to retrieve all reservations for a specific property
    • Method:GET
    • Route Parameters: propertyId=[integer]
    • Query Parameters: false
    • Body: false
  • URL: /property/:propertyId/reservation

    • Description: Route to handle inserting a new reservation for a specific property
    • Method:POST
    • Route Parameters: propertyId=[integer]
    • Query Parameters: false
    • Body: userId=[integer] addressId=[integer] startDate=[date] endDate=[date] guestCount=[integer] numadult=[integer] numchildren=[integer] numinfants=[integer]
  • URL: /property/:propertyId/reservation/:reservationId

    • Description: Route to handle updating an already existing reservation for a specific property
    • Method:PATCH
    • Route Parameters: propertyId=[integer] reservationId=[integer]
    • Query Parameters: false
    • Body: userId=[integer] addressId=[integer] startDate=[date] endDate=[date] guestCount=[integer]
  • URL: /property/:propertyId/reservation/:reservationId

    • Description: Route to handle deleting a reservation for a specific property
    • Method:DELETE
    • Route Parameters: propertyId=[integer] reservationId=[integer]
    • Query Parameters: false
    • Body: false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published