openactive / open-booking-api

Repository for the Open Booking API specification
Other
2 stars 3 forks source link

Use standard idempotency key header #239

Open nickevansuk opened 1 year ago

nickevansuk commented 1 year ago

Idempotency is currently achieved for B using the UUID, however a more standard approach should be adopted to ease implementation with existing libraries and frameworks.

https://datatracker.ietf.org/doc/draft-ietf-httpapi-idempotency-key-header/

If this is still in draft by the time it is considered for inclusion in the spec, suggest using x-idempotency-key in line with Open Banking, rather than using the draft before it is ratified.

nathansalter commented 1 year ago

I'd recommend just using the actual header. Migrating header names can be a pain, and it's recommended to not use the X- prefix any more.