Spec Hub can derive an OpenAPI document from the collection you already built. First switch to the Git branch where your collection lives — then generate the spec in Local View so Postman writes files under postman/specs/.
Switch to the Branch with Your Collection
In the Native Git module you pushed Deskly API to feature/deskly-collection. Local View only shows collections for the branch currently checked out in your connected folder — if the bottom-left branch reads main, the collection won't be in the sidebar yet.
-
Open the Postman desktop app and switch to your [Your name] - Native Git workspace.
-
Confirm Local View is on and your
deskly-apifolder is still connected. The branch name shows in the bottom left (e.g.mainorfeature/deskly-collection). -
If you're not on
feature/deskly-collection, open the Postman terminal and run:git fetch origin git checkout feature/deskly-collection -
Confirm the bottom-left branch name updates to
feature/deskly-collection. -
In the left sidebar, expand Local Items → Collections — Deskly API should appear.
Troubleshooting
checkoutfails — rungit branch -aand use thefeature/branch name you pushed in the Native Git module.- Collection still missing — re-run Part 1 Step 2 to confirm that branch exists on your GitHub fork, then try
git pull origin feature/deskly-collection.
Generate a Specification from the Deskly API Collection
With the right branch checked out, generate a single-file OpenAPI 3 spec linked to your collection.
- Select Deskly API under Local Items → Collections.
- Click View more actions (⋯) next to the collection name, then choose More → Generate specification.
- On the form:
- Name:
Deskly API - Format: YAML
- Name:
- Click Generate Specification.
Expected outcome: Deskly API appears under Specs in the sidebar, and the collection's Overview tab shows the linked specification.
Troubleshooting: If Generate specification is greyed out, you may already have a spec linked — expand Specs, open it, or delete the old one and try again. You can only generate one spec per collection.
Inspect the Spec Files in Your Repo
Before you push, confirm Native Git wrote the spec to disk. You'll commit these files in Part 3.
- In the left sidebar, click Files to open the file tree for your connected repo.
- Expand
postman/specs/— you should see a folder for Deskly API containing at least one.yamlfile (often the root OpenAPI file). - Open the YAML file and skim the top — it should start with
openapi: 3.and list paths such as/healthand/desks.
Expected outcome: The spec lives under postman/specs/ next to your collection under postman/collections/, both versioned in the same repo.