Endpoints
After much thought, it became somewhat clear that we should only work with four endpoints, and our resource should be only one: booking. That means that we will use four endpoints in total, corresponding simply to GET, PATCH, DELETE, and POST.
Endpoints
GET /api/rooms/{room_name}/bookings?from=2026-W20
POST /api/rooms/{room_name}/bookings
PATCH /api/rooms/{room_name}/bookings/{id}
DELETE /api/rooms/{room_name}/bookings/{id}
Endpoints
After much thought, it became somewhat clear that we should only work with four endpoints, and our resource should be only one:
booking. That means that we will use four endpoints in total, corresponding simply toGET,PATCH,DELETE, andPOST.Endpoints