Skip to content

Add cancel booking endpoint - #17

Open
jeromewir wants to merge 2 commits into
mainfrom
feature/cancel-booking-endpoint
Open

Add cancel booking endpoint#17
jeromewir wants to merge 2 commits into
mainfrom
feature/cancel-booking-endpoint

Conversation

@jeromewir

Copy link
Copy Markdown
Owner

Summary

  • add POST /api/bookings/cancel accepting only bookingId
  • fetch latest upcoming bookings before cancellation and build the WeWork cancel payload from fresh data
  • document the endpoint and add tests for lookup and payload validation

Testing

  • go test ./...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant