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

API Documentations: Overview

So far, youโ€™ve learned how to design, mock, and test your APIs. You've built a solid foundation with the Pet Store User module. Now, it's time to unlock the full value of that work by documenting and publishing it for your consumers.
Documentation is the user interface of your API. No matter how powerful or efficient your API is, if developers can't understand how to use it, it won't be adopted. Apidog simplifies this process by automatically generating beautiful, interactive documentation directly from your API designs.
In this chapter, we will take the User module we designed earlier and turn it into a professional Developer Portal.

Why API Documentation Matters?#

Documentation bridges the gap between the code you write and the developers who use it.

1. Developer Experience (DX)#

Good documentation reduces friction. It allows developers to:
Quickly understand what your API does.
Find the endpoints they need without guessing.
Copy-paste working code examples.

2. Single Source of Truth#

With Apidog, your documentation is linked to your API design.
You don't write docs separately in a generic word processor.
When you update an endpoint design, the documentation updates automatically.
This prevents the common problem of "stale documentation."

3. Reduced Support Costs#

Clear, interactive documentation answers common questions before they are asked. When developers can "Try it out" right in the browser, they troubleshoot issues on their own.

What You'll Learn#

In this chapter, youโ€™ll master the "Docs-as-Code" workflow in Apidog:
1.
Publishing Your First Docs Site โ€” Learn the difference between "Quick Share" for internal teams and "Publish Docs" for public consumption. You will publish your User module.
2.
Customizing Documentation Appearance โ€” Make your docs look professional. Customize the navigation, themes, and branding to match your organization's style.
3.
Interactive Features for Consumers โ€” Explore the "Try it out" console, mock server integration, and client code generation features that make your docs "alive."
4.
Advanced Publishing Settings โ€” Take control of your documentation's presence with custom domains, SEO optimization, and advanced styling.
5.
Managing API Versions โ€” Learn how to handle API evolution by managing multiple versions of your documentation site.

Prerequisites#

Before starting this chapter, you should:
Have a project with some API endpoints designed (we will use the Pet Store User module from the Designing APIs chapter).
Basic understanding of what a "Public API" is.

The "Doc-as-Code" Philosophy#

Apidog follows a philosophy where documentation isn't an afterthoughtโ€”it's a direct byproduct of good design.
1.
Design your API (Paths, Schemas, Responses).
2.
Annotate with descriptions and examples (as we did in the Designing APIs chapter).
3.
Publish with a click.
You've already done the hard work of designing the User module. Now, watch how effortless it is to present it to the world.

Ready to publish? Let's start with Publishing Your First Docs Site.
Modified atย 2025-12-29 10:42:25
Previous
Chapter Summary
Next
Publishing Your First API Doc
Built with