AGENT SKILL

drin-api-versioning-strategy

Framework for managing API evolution without breaking legacy client integrations.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 12
Forks
1

01 前言 Front Matter

name
drin-api-versioning-strategy
status
production
description
Framework for managing API evolution without breaking legacy client integrations.

03 SKILL.md 正文

API Versioning Strategy

Purpose

To balance rapid API innovation with the stability and trust required by external integrators.

Approaches

  • URI Versioning: /v1/users, /v2/users. (Explicit, easy to cache).
  • Header Versioning: Accept: application/vnd.drin.v1+json. (Cleaner URLs, harder to test).
  • Parameter Versioning: ?version=2.

Deprecation Path

  1. Announce: Flag in docs and headers.
  2. Sunset: Set an end-of-life date (min 6-12 months).
  3. Decommission: Final removal of the endpoint.

Rules

  • Never make breaking changes without a version bump.
  • Maintain a clear "Migration Guide" for every version change.

04 同仓库更多 Skills