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

Publishing Your First API Doc

You've spent hours designing the perfect User module for the Pet Store. It has clear schemas, meaningful examples, and error responses. Now, how do you get this to your frontend developers or external partners?
Apidog offers two primary ways to share your work: Quick Share and Publish Docs. Understanding the difference is key to establishing the right workflow.

Quick Share vs. Publish Docs#

FeatureQuick SharePublish Docs
PurposeInternal team collaboration, quick reviewOfficial release, Developer Portals
PersistenceTemporary/Ad-hocLong-term, branded site
CustomizationLimitedFull (Custom Domain, CSS, Navigation)
Access ControlPassword / ExpirationPassword, IP Whitelist, SSO
SEONoYes
For this chapter, we are focusing on Publish Docsβ€”creating a permanent, professional home for your API.

Step 1: Initialize Your Docs Site#

1.
In your Apidog project, look for Share Docs in the left sidebar.
2.
Click on the Publish tab.
3.
You will see a default "Main Site" created for you. Click Publish to make it live instantly.
Publish button UI
By default, Apidog provides a subdomain (e.g., project-id.apidog.io). You can send this link to anyone right now, and they will see your API documentation.

Step 2: Controlling Access#

Not all APIs are meant for the public. You might want to share your User module only with a specific partner or internal team.
Click on "Docs Site Visibility" to explore your options:

Public#

Anyone with the link can view it. This is great for open-source projects or public platform APIs. You can even choose to publish to the Apidog API Hub for greater discoverability.

Password Protected#

The simplest way to restrict access.
1.
Select Password protected.
2.
Enter a password (or generate a random one).
3.
Distribute this password to your stakeholders.
Password protection settings

Enterprise Controls#

For stricter security, you can use:
IP Allowlist: Restrict access to your company's VPN or office IP range.
Email Allowlist: Only detailed email addresses can access via a verification code.
Custom Login Page: Integrate with your own SSO (Single Sign-On) using JWT. This allows users to log in with their existing company credentials to view the docs.
See details Docs site visibility setting

Step 3: Configuring Content Scope#

You might not want to publish everything.
1.
In the publishing settings, look for the Content or Scope section.
2.
Select which folders to include. For our example, prioritize the User Management folder we organized earlier.
3.
You can exclude internal administrative endpoints or "Draft" status folders.

Key Takeaways#

Quick Share vs. Publish Docs: Use Quick Share for internal reviews; use Publish Docs for official, persistent documentation sites.
Access Control: Secure your docs with passwords, IP whitelisting, or SSO to protect sensitive API information.
Content Scope: You can selectively publish specific folders or endpoints, keeping internal drafts private.
One-Click Publishing: Apidog generates a ready-to-use site instantly, saving you from building a portal from scratch.
Once you're in, notice how Apidog has automatically rendered your schemas and examples into a readable format. In the next section, we'll make this default site look like your brand.
Continue with β†’ Customizing Documentation Appearance
Modified atΒ 2025-12-25 10:06:03
Previous
API Documentations: Overview
Next
Customizing Documentation Appearance
Built with