Standalone OpenAPI repository for the Nexus public commerce API contract.
- Edit
specs/v3/openapi.yaml - Do not edit
specs/v3/openapi.jsondirectly specs/v3/openapi.jsonis a generated artifact and is not committedspecs/v3/openapi.yamlintentionally documents only/v3endpoints
npm install
npm run lint
npm run build
npm run build:sitenpm run build generates specs/v3/openapi.json from the YAML source for local tooling or publishing workflows.
npm run build:site creates a publishable dist/ directory with:
dist/index.htmlfor human-readable API docsdist/specs/v3/openapi.yamldist/specs/v3/openapi.json
When Nexus commerce API behavior changes, update this repo as part of the same work.
The repo includes .github/workflows/pages.yml, which:
- validates the YAML spec
- generates JSON from the YAML source
- builds static HTML docs with Redocly
- deploys
dist/to GitHub Pages from the default branch
After pushing this repo to GitHub:
- Open repository Settings > Pages.
- Set Source to
GitHub Actions. - Optionally set a custom domain in the Pages settings.
- Verify the domain in GitHub and point DNS at GitHub Pages.
With this setup, the published site will expose the docs homepage plus the raw spec files under /specs/v3/openapi.yaml and /specs/v3/openapi.json.