OpenAPI example specification in YAML and JSON
npm install @scalar/galaxy



OpenAPI and AsyncAPI example documents in YAML and JSON to test OpenAPI and AsyncAPI tooling, run test suites or learn about OpenAPI and AsyncAPI.
``bash`
npm install @scalar/galaxy
| Version | Format | URL |
| ------- | ------- | ----------------------------------------------------------- |
| Latest | Preview | https://registry.scalar.com/@scalar/apis/galaxy |
| Latest | JSON | https://registry.scalar.com/@scalar/apis/galaxy?format=json |
| Latest | YAML | https://registry.scalar.com/@scalar/apis/galaxy?format=yaml |
| Version | Format | URL |
| --------------- | ------ | --------------------------------------------------------------------- |
| OpenAPI Latest | JSON | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json |
| OpenAPI Latest | YAML | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml |
| OpenAPI 3.1 | JSON | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/3.1.json |
| OpenAPI 3.1 | YAML | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/3.1.yaml |
| AsyncAPI Latest | JSON | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/asyncapi/latest.json |
| AsyncAPI Latest | YAML | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/asyncapi/latest.yaml |
| AsyncAPI 3.0 | JSON | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/asyncapi/3.0.json |
| AsyncAPI 3.0 | YAML | https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/asyncapi/3.0.yaml |
`ts`
import ScalarGalaxy from '@scalar/galaxy/latest.json'
`ts`
import ScalarGalaxy from '@scalar/galaxy/latest.json?raw'
`ts`
import ScalarGalaxy from '@scalar/galaxy/latest.yaml?raw'
`ts`
import ScalarGalaxy from '@scalar/galaxy/3.1.json'
`bash``
npx @scalar/cli document serve ./src/documents/3.1.yaml --watch
We are API nerds. You too? Let's chat on Discord:
The source code in this repository is licensed under MIT.