- In reservation list click on "close service"
- We close a service by creating a new service with parentUuid of the service we want to close (with empty tags)
post /restaurants/{restaurantId}/services
=> tags: []
=> dateRanges : {
start: closedDate,
end: closedDate,
}
Will post /restaurants/{restaurantId}/services return conflicts?
- With the returned reservations conflict we generate a conflict resolution page
- Every change on a reservation is saved "live" (no draft stage). When a save occur we post /restaurants/{restaurantId}/services with the
VALIDATE
header. - When post /restaurants/{restaurantId}/services has no more conflict we go to the next page
- On that page the user can click Publish on we post /restaurants/{restaurantId}/services without the validate header.
- If no conflict go back to booking list OR go back to conflict management page
- We DELETE the service
- The DELETE route sends us conflicting reservations
⚠️ API seems to not do that - Resolve conflicts like close then DELETE again