Please ensure that your Apidog version is β₯2.7.29.
Apidog supports automatically backing up the OpenAPI / Swagger files for each module in a project to a Git repository. GitHub, GitLab, and Azure DevOps are currently supported. Backups are performed during off-peak hours at night (the exact time is not fixed and is randomly scheduled during idle periods).Creating a Git Repository Connection#
1.
Navigate to Settings β Git Connections
π· Visual Reference
2.
Click New, then log in to the corresponding source code management platform after being redirected.
3.
Fill in the configuration details according to your selected platform.
π· Visual Reference
4.
Save the repository connection configuration.
Enabling Automatic Backup#
1.
In the module you want to back up, go to Overview β API Specification and add an OAS.
π· Visual Reference
2.
Enable Backup to Git Repository.
3.
Configure the following settings:Git Repository Connection (select a previously created connection)
Target File Path (the location where the OpenAPI Spec file will be stored in the repository)
π· Visual Reference
Once saved, the system will automatically push the OpenAPI Spec file for that module to the specified Git repository during a random off-peak time at night.π· Visual Reference
Import OpenAPI/Swagger Files#
You can import OpenAPI/Swagger files from remote repositories on a regular basis. In Settings β Bind Data Sources, select Git Repository as the data source and bind your remote repository. For detailed explanation, check the Scheduled Import page.