Skip to content

Instantly share code, notes, and snippets.

@hpar4795
hpar4795 / API Documentation.txt
Created December 21, 2018 00:51
Similar Listings API Documentation and Sample Response
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:
[
{