This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This API is used to get bookings info for each listing on flarebnb and ability for users to book a listing and update the booking doc in database | |
The API takes get requests to '/bookings/:id/ which will respond back with that booking's id information, and post requests to | |
'/bookings/:id' which will update the checkin and checkout fields for the booking with the matching id field. | |
sample request: | |
localhost:3004/bookings/3 | |
sample response: | |
[ | |
{ |