Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Airbnb Backend API

This application provides backend APIs for a hotel management system, including inventory management, booking flow, user authentication, and hotel browsing.

Image

Features

Admin Inventory

  • GET /admin/inventory/rooms/{roomId} - Retrieve inventory of a room
  • PATCH /admin/inventory/rooms/{roomId} - Update inventory for a room
  • PUT /admin/hotels/{hotelId}/rooms/{roomId} - Update a room

Booking Flow

  • GET /bookings/{bookingId}/status - Check booking status
  • GET /admin/hotels/{hotelId}/reports - Generate hotel booking report
  • GET /admin/hotels/{hotelId}/bookings - Get all bookings
  • POST /bookings/{bookingId}/payments - Initiate payment
  • POST /bookings/{bookingId}/cancel - Cancel a booking
  • POST /bookings/{bookingId}/addGuests - Add guests to a booking
  • POST /bookings/init - Initialize a new booking

Booking Guests

  • DELETE /users/guests/{guestId} - Remove a guest
  • GET /users/guests - Get my guests
  • POST /users/guests - Add a guest
  • PUT /users/guests/{guestId} - Update a guest

Hotel Browse

  • GET /hotels/{hotelId}/info - Get hotel details
  • GET /hotels/search - Search for hotels

Hotel Management

  • DELETE /admin/hotels/{hotelId} - Delete a hotel
  • GET /admin/hotels/{hotelId} - Get hotel by ID
  • GET /admin/hotels - Get all admin hotels
  • PATCH /admin/hotels/{hotelId}/activate - Activate a hotel
  • POST /admin/hotels - Create a hotel
  • PUT /admin/hotels/{hotelId} - Update hotel details

Room Admin Management

  • DELETE /admin/hotels/{hotelId}/rooms/{roomId} - Delete a room
  • GET /admin/hotels/{hotelId}/rooms/{roomId} - Get room details
  • GET /admin/hotels/{hotelId}/rooms - Retrieve all rooms
  • POST /admin/hotels/{hotelId}/rooms - Create a room
  • PUT /admin/hotels/{hotelId}/rooms/{roomId} - Update a room

User Authentication

  • POST /auth/signup - User signup
  • POST /auth/refresh - Refresh access token
  • POST /auth/login - User login

User Profile

  • DELETE /users/guests/{guestId} - Remove a guest
  • GET /users/guests - Get my guests
  • GET /users/profile - Get my profile
  • GET /users/myBookings - Get my bookings
  • PATCH /users/profile - Update my profile
  • POST /users/guests - Add a guest
  • PUT /users/guests/{guestId} - Update a guest

Webhook

  • POST /webhook/payment - Capture payments

###Schema Image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages