Scalar · Example Payload

Scalar Registry Publish Example

API ClientAPI DocumentationAPI ReferencesCode GenerationDeveloper ToolsOpenAPIRegistrySDKsSwagger

Scalar Registry Publish Example is an example object payload from Scalar, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

example

Example Payload

scalar-registry-publish-example.json Raw ↑
{
  "example": {
    "title": "Publish OpenAPI Document to Scalar Registry",
    "description": "Example of publishing an OpenAPI document to the Scalar Registry using the CLI.",
    "type": "cli",
    "command": "scalar registry publish --namespace my-org/payments-api --file ./openapi.yaml --version 2.1.0",
    "request": {
      "method": "CLI",
      "tool": "scalar",
      "subcommand": "registry publish",
      "flags": {
        "--namespace": "my-org/payments-api",
        "--file": "./openapi.yaml",
        "--version": "2.1.0"
      }
    },
    "response": {
      "status": "success",
      "message": "Successfully published my-org/payments-api@2.1.0 to the Scalar Registry.",
      "documentUrl": "https://registry.scalar.com/my-org/payments-api",
      "docsUrl": "https://docs.scalar.com/my-org/payments-api"
    }
  }
}