versioning-apis

Featured

Implement API versioning with backward compatibility, deprecation notices, and migration paths. Use when managing API versions and backward compatibility. Trigger with phrases like "version the API", "manage API versions", or "handle API versioning".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Versioning APIs ## Overview Implement API versioning strategies -- URL path (`/v1/`, `/v2/`), header-based (`Accept: application/vnd.api.v2+json`), or query parameter (`?version=2`) -- with backward compatibility layers, deprecation notices, and automated migration paths. Manage concurrent version support, sunset timelines, and breaking change detection across the API surface. ## Prerequisites - Existing API codebase with route definitions and controller implementations - Version control history for tracking breaking changes across releases - OpenAPI specs for each supported API version (or ability to generate them) - API gateway or reverse proxy capable of version-based routing (optional: Kong, AWS API Gateway) - Consumer notification channel for deprecation announcements (changelog, email, response headers) ## Instructions 1. Audit existing endpoints using Grep and Read to identify current versioning approach (if any) and catalog all public-facing endpoints with their request/response contracts. 2. Select a versioning strategy based on API consumer patterns: URL path versioning for public APIs, header versioning for APIs needing clean URLs, or content negotiation for advanced use cases. 3. Create a version router that directs requests to the appropriate version handler set based on the extracted version identifier from URL, header, or query parameter. 4. Implement version-specific controller directories (`/v1/controllers/`, `/v2/controllers/`) with shared business l...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category