Apidog's Spec-first Mode is designed for teams that prefer a native Git workflow. It allows you to design your API specifications using YAML or JSON files and keeps them in a seamless, two-way sync with your connected Git repository.
The biggest difference you'll notice in Spec-first Mode is the introduction of the Specs module in the left sidebar. This transforms Apidog from a visual form editor into a dedicated IDE for your API specifications.
File-Based Management: Instead of filling out visual forms, you manage raw .json or .yaml files directly. The central code editor provides syntax highlighting, validation, and auto-completion for OpenAPI and Swagger formats.
Real-time Directory Parsing: As you write or modify your code in the editor, the left sidebar automatically parses your file and generates a visual, navigable outline of your API endpoints (e.g., Paths, Components).
Sync Status: You can easily monitor the connection state with your repository by checking the sync indicator at the bottom-left corner of the sidebar (e.g., "Synced just now").
Spec-first Mode integrates standard Git version control operations directly within the Apidog interface, ensuring your Apidog project and your remote Git repository are always aligned.
1
After making changes to your specification files, click the Commit & Push button located at the top right of the workspace.
2
The Push to Git repo modal will appear. Review the list of modified, added, or deleted files under the "Changes" section.
3
Enter a descriptive Commit Message explaining your updates.
4
Click Push to commit and sync your changes directly to your remote repository branch. If you want to revert your current unpushed edits, you can select Discard all changes instead.