-
Notifications
You must be signed in to change notification settings - Fork 6
API Versioning #375
Copy link
Copy link
Open
Description
API versioning is crucial for managing changes without breaking user experiences.
- API versioning tracks changes to an API, allowing developers to add features or fix bugs without disrupting existing clients
- Common versioning methods: protobuf package, URI-based, header-based, and body-based
- Key benefits: maintains backward compatibility, enables new features, allows bug fixes, gives users control over upgrades
Quick comparison of versioning methods:
| Method | How it works | Pros | Cons | Choice |
|---|---|---|---|---|
| Package | Different gRPC service to different client version | Simple to use | ✔️ | |
| URI | Version in URL (e.g., /v1/users) |
Simple to use | Clutters URLs | ❌ |
| Header | Version in HTTP headers | Keeps URLs clean | Trickier to implement | ❌ |
| Body | Version in request/response | Detailed control | More complex | ❌ |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels