Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 558 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 558 Bytes

reservations

CRUD API

Create: User (userId) makes a reservation for listing (roomId)

  • POST /api/reservations/:roomId/:userId
    • Content-Type: 'application/json'

Read/Retrieve: Gets all reversations under listing (roomId)

  • GET /api/reservations/:roomId
    • Content-Type: 'application/json'

Update: Change reversation (reservationId)

  • PUT /api/reservations/:reservationId
    • Content-Type: 'application/json'

Delete: Delete reversation (reservationId)

  • DELETE /api/reservations/:reservationId
    • Content-Type: 'application/json'