Skip to content

scalevcom/api-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-openapi

Standalone OpenAPI repository for the Nexus public commerce API contract.

Source of Truth

  • Edit specs/v3/openapi.yaml
  • Do not edit specs/v3/openapi.json directly
  • specs/v3/openapi.json is a generated artifact and is not committed
  • specs/v3/openapi.yaml intentionally documents only /v3 endpoints

Usage

npm install
npm run lint
npm run build
npm run build:site

npm 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.html for human-readable API docs
  • dist/specs/v3/openapi.yaml
  • dist/specs/v3/openapi.json

When Nexus commerce API behavior changes, update this repo as part of the same work.

GitHub Pages

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:

  1. Open repository Settings > Pages.
  2. Set Source to GitHub Actions.
  3. Optionally set a custom domain in the Pages settings.
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors