UnionInternationalCheminsdeFer / OSDM

Projects related to an open sales & distribution API for public transportation.
https://osdm.io
Apache License 2.0
47 stars 20 forks source link

API Versioning Recommendations in Docs #378

Open jspetrak opened 7 months ago

jspetrak commented 7 months ago

Decide on API Versioning

Decision Tree

Versioning of resource or suite?

How/where do we version (path, header,...)?`

Which kind of header versioning

HTTP version (RFC 4229): version: 2.0

Media Type Profile (RFC 6906) Accept: application/json; profile="https://osdm.io/2.0"

Media Type Version Accept: application/vnd.osdm+json;version=2.0

Backward compatibility and semantic versions

Many questions: Form a small group of experts

Decisions:

We must adhere to semantic versioning OSDM 2.1 will be OSDM 3.0 as we have breaking changes

jspetrak commented 7 months ago

The header versioning is anticipated in favor of URL versioning.

Recommendation should be documented at osdm.io.

jspetrak commented 7 months ago

Vendor-specific media types can be registered with IANA in order to be recognized (prefix vnd. ) Otherwise they should be prefixed with x.

jspetrak commented 7 months ago
jspetrak commented 7 months ago

Josef to draft documentation for 24.11.