Fast Request
Get start
Features
What's New
Script
🔥 Teamwork
Contact us
🎯 Faq
  • Introduction
  • Install
    • Make icon move
    • Project-level domain config
    • Project-level config
    • SearchEveryWhere
    • API group
    • Debug API & send request
    • Download file
    • Stop API request
    • Navigate to current method
    • Save request
    • Temporary request
    • Apifox integration
    • Postman Sync
    • Re generate
    • cURL import
    • cURL copy
    • Single url copy
    • API document sync
    • History request
    • Setting manager
    • Full screen
    • Annual report
    • Document / Contact
    • Html preview
    • Swagger default value
    • Auto Description
    • API list
    • APIs export to Postman
    • APIs import and export
    • Batch export API doc
    • API navigate tree
    • API list preview
    • Api comment preview
    • Script
    • Function
    • Quickly add header
    • Auto domain
    • AI
    • Headers group
    • Headers batch edit
    • Custom toolbar
    • Json grammar check
  • Script
  • Environment
  • What's New
  • Teamwork
  • Buy Plugin
  • Version compare
  • Contacts
  • FAQ
  • Price adjust
  • EULA
  • History changes
  • Features

API document sync


API document sync

Version required: 2022.2.7+

Introduction

Used to synchronize API documents to Github、 Gitee、 Gitlab, and generate online documents and share them with other partners.

apiSync

Attention

  • If there is no network in the intranet, please use self-host GitLab. GitLab only supports v4 and does not support other versions.
  • If the configured repo does not exist in the cloud, a private repo will be created by default.
  • The project access has been 404. The solution is to set the repo as public or pull the partner to the repo to become a member when sharing.
  • A project corresponds to synchronizing a repo. After determining a repo and synchronizing some documents, keep the repo the same because history cannot be synchronized.

Configuration

apiSyncSetting

Note: The naming policy determines the name of the file synchronized to the cloud. The file name comes from the Javadoc or Swagger method naming annotation. If JavaDoc is checked, please ensure that the naming of the Javadoc and Swagger method must be short. Otherwise, the file name in the cloud will be very long. In this case, consider checking the method name to synchronize.

Token

When checking the permissions, you must ensure that the minimum permissions are checked to support the API sync and that the token is within the valid time frame.

Github:must check 'repo'
Gitlab:must check 'api'
Gitee:must check 'projects'
  • GitHub githubToken

  • Gitlab gitlabToken

  • Gitee giteeToken

Last update: 3/7/2025, 8:06:53 AM
Prev
Single url copy
Next
History request
Theme by vuepress-theme-hope
Copyright © 2021-present Kings