API Academy
🌐 English
  • 🌐 English
  • 🌐 繁體中文
HomePetstore APIExplore more APIs
HomePetstore APIExplore more APIs
🌐 English
  • 🌐 English
  • 🌐 繁體中文
🌐 English
  • 🌐 English
  • 🌐 繁體中文
  1. API Documentations
  • Introduction
  • Table of Contents
  • API Academy
    • Get Started
      • What is an API?
      • How Does an API Work?
      • How to Call an API?
      • How to Read an API Documentation?
      • Chapter Summary
      • Get realtime weather
    • API Fundamentals
      • API Funtamentals: Overview
      • Method & Path
      • Parameters
      • Request Body
      • Responses
      • API Specification & OAS
      • Chapter Summary
    • Working with APIs
      • Working with APIs: Overview
      • Making Requests from Spec
      • Environments and Variables
      • Chaining Multiple Endpoints
      • Handling Authentication
      • Handling API Signatures
      • Introduction to Scripts
      • Chapter Summary
    • Mocking APIs
      • Mocking APIs: Overview
      • Smart Mock
      • Mock Expectations
      • Cloud Mock
      • Mock Scripts
      • Chapter Summary
    • Designing APIs
      • Designing APIs: Overview
      • Introduction to API Design
      • Creating Your First API Project
      • Analyzing Requirements and Planning Your API
      • Designing Data Models
      • Designing Endpoints
      • Using Components and Reusability
      • Setting Up Authentication
      • API Design Guidelines
      • Chapter Summary
    • Developing APIs
      • Developing APIs: Overview
      • Setup: Install Your AI Coding Assistant
      • Quick Start: From Spec to Running API in 30 Minutes
      • Understanding the Generated Code
      • Testing Your API with Apidog
      • Deployment: Put Your API Online
      • Chapter Summary
    • Testing APIs
      • Testing APIs: Overview
      • Getting Started: Your First Test Scenario
      • Integration Testing and Data Passing
      • Dynamic Values
      • Assertions and Validations
      • Flow Control: If, For, ForEach
      • Data-Driven Testing
      • Performance Testing
      • Test Reports and Analysis
      • CI/CD Integration
      • Scheduled Tasks and Automation
      • Advanced Testing Strategies
      • Chapter Summary
    • API Documentations
      • API Documentations: Overview
      • Publishing Your First API Doc
      • Customizing Documentation Appearance
      • Interactive Features for Consumers
      • Advanced Publishing Settings
      • Managing API Versions
      • Chapter Summary
    • Advanced API Technologies
      • API Technologies: Overview
      • GraphQL
      • gRPC
      • WebSocket
      • Socket.IO
      • Server-Sent Events (SSE)
      • SOAP
      • Chapter Summary
    • API Lifecycle
      • API Lifecycle: Overview
      • Stages of the API Lifecycle
      • API Governance
      • API Security Best Practices
      • Monitoring and Analytics
      • API Versioning Strategies
      • The Future of APIs
      • Chapter Summary
    • API Security
      • API Security: Overview
      • API Security Fundamentals
      • Authentication vs Authorization
      • Understanding OAuth 2.0 and OpenID Connect
      • JSON Web Tokens (JWT)
      • OWASP API Security Top 10
      • Encryption and HTTPS
      • Chapter Summary
    • API Tools
      • API Tools: Overview
      • The Evolution of API Tools
      • API Clients
      • Command Line Tools (cURL, HTTPie)
      • API Design and Documentation Tools
      • API Mocking Tools
      • API Testing Tools
      • All-in-One API Platforms
      • Chapter Summary
    • API Gateway
      • API Gateway: Overview
      • What is an API Gateway?
      • Key Features of API Gateways
      • API Gateway vs Load Balancer vs Service Mesh
      • Popular API Gateway Solutions
      • The BFF (Backend for Frontend) Pattern
      • Chapter Summary
  • Modern Pet Store
    • Pet
      • Get Pet
      • Update Pet
      • Delete Pet
      • Create Pet
      • List Pets
      • Upload Pet Image
    • User
      • Update User
      • Get User
      • Delete User
      • Login
      • Logout
      • Create User
    • Store
      • List Inventory
      • Create Order
      • Get Order
      • Delete Order
      • Callback Example
      • Pay for an Order
    • Payments
      • Pay Order
    • Chat
      • Create Chat Completion
    • Webhooks
      • Pet Adopted Event
      • New Pet Available Event
  • Schemas
    • Pet
    • Category
    • User
    • ApiResponse
    • OrderPayment
    • Tag
    • Order
    • Links-Order
    • PetCollection
    • Bank Card
    • Bank Account
    • Links
    • Error
HomePetstore APIExplore more APIs
HomePetstore APIExplore more APIs
🌐 English
  • 🌐 English
  • 🌐 繁體中文
🌐 English
  • 🌐 English
  • 🌐 繁體中文
  1. API Documentations

Managing API Versions

APIs change. You might add a new parameter, deprecate an old endpoint, or completely restructure the response format. How do you handle this without breaking your documentation for existing users?
Apidog's Versioning feature allows you to maintain multiple versions of your documentation (e.g., v1.0, v2.0) simultaneously.

When to Version?#

Breaking Changes: If you remove fields or change authentication, you must version.
Major Features: A v2.0 overhaul often warrants a fresh documentation set.
Minor Updates: For small non-breaking changes (adding a field), you usually just update the current version rather than creating a new one.

Creating a New Version#

In Apidog, a Version is essentially a snapshot of your API resources.
1.
Go to Project Settings > Versions.
2.
Create a new version (e.g., v2.0).
3.
You can choose to copy all endpoints from v1.0 as a starting point.
Now, you have two isolated workspaces. Changes in v2.0 won't affect v1.0 designs.
See details API Versions in Apidog

Publishing Multiple Versions#

Once you have multiple versions designed, you need to expose them to the user.
1.
Go to Share Docs > Publish > Release.
2.
You will see a list of versions.
3.
Add the versions you want to display (v1.0, v2.0).
4.
Set the Slug for each (e.g., /v1, /v2).
5.
Arrange the order. The top one is usually the Default.
Version list in publishing settings

User Experience#

On your published docs site, a Version Selector dropdown will appear in the top-left corner (next to the project title).
Users can switch between v1.0 and v2.0.
The URL will change accordingly (e.g., docs.example.com/v1/...).

Key Takeaways#

Versioning Strategy: Version your docs when introducing breaking changes to ensure backward compatibility for existing users.
Snapshot Versions: A version in Apidog is a snapshot of your API resources, allowing you to maintain v1.0 while designing v2.0.
Release Management: Publish multiple versions simultaneously and let users switch between them via a dropdown selector.
User Experience: Clear versioning signals maturity and stability, giving developers confidence to build on your platform.
This ensures that even as you innovate, you never leave your legacy users behind.
You've mastered the art of documenting your API. Now, let's wrap up this chapter with a Chapter Summary.
Modified atΒ 2025-12-26 04:35:25
Previous
Advanced Publishing Settings
Next
Chapter Summary
Built with