Skip to main content

API Playground designed

The API reference renderer and the API playground are related, but they are not the same product capability.

Stoplight has a "Try It" capability, and that remains useful to evaluate. For GPUaaS, the key requirement is stronger: developers need a playground that can exercise the right environment with the right credentials and safety controls. A mock-backed Try It is helpful for learning request shape, but it does not prove auth, tenancy, idempotency, policy, billing, terminal, or operational behavior against a real GPUaaS control plane.

The current Stoplight Elements Research result is to pilot Elements as a renderer/mock-mode candidate, while keeping the GPUaaS playground as a controlled product surface.

Scalar is also a candidate for this layer. If Scalar's Docusaurus integration gives us a better embedded reference/playground experience, switching is viable as long as the same environment, credential, audit, and publication-track rules are satisfied.

The current Scalar Research result is to pilot Scalar beside Stoplight using the same synced OpenAPI artifact.

Reference vs Playground

CapabilityPurposeRequirement
Static contract artifactDownload and inspect canonical OpenAPI/AsyncAPI YAMLAlready implemented through /api/openapi.draft.yaml and /api/asyncapi.draft.yaml
Rendered API referenceBrowse endpoints, schemas, examples, and auth rulesCan be Stoplight, Docusaurus OpenAPI Docs, Redoc/Swagger-style, or another renderer
Embedded API explorerBrowse reference and execute examples in the same portal pathScalar or Stoplight Elements are candidates, pending security and environment-control review
Mock Try ItLearn request/response shape without touching a real environmentUseful for low-risk learning, not enough for integration validation
GPUaaS playgroundExecute selected calls against approved dev/sandbox environmentsNeeded for internal developers, app teams, and integration validation

Playground Requirements

AreaRequirement
Environment routingExplicit environment selector: mock, local/dev, shared sandbox, UAT, or partner sandbox
Credential modelUses approved developer credentials, service-account tokens, or short-lived playground sessions
Tenant/project scopeEvery request shows the active tenant/project context before execution
SafetyMutating requests require confirmation, idempotency key visibility, and safe defaults
SecretsTokens are never persisted in docs storage, URLs, screenshots, or generated examples
AuditPlayground requests include correlation IDs and are distinguishable in logs/audit
Rate limitsPlayground traffic has explicit rate limits and abuse controls
ExamplesExamples come from OpenAPI plus curated runnable scenarios, not hand-written drift
Publication tracksPublic docs may allow mock only; internal/customer/partner tracks can expose controlled live environments

First Playground Scenarios

ScenarioWhy it matters
Auth/token exchange or service-account tokenProves developer can authenticate safely
Catalog and SKU lookupSafe read-only first call for all consumers
Launch precheckTests policy, balance, availability, and project context without provisioning
Allocation status lookupShows lifecycle state and error model
Idempotent mutation exampleTeaches retry behavior with X-Idempotency-Key
Billing balance/usage readShows money fields, minor units, and authorization boundaries
Event sample lookupBridges REST reference and AsyncAPI/event documentation

Implementation Direction

Start with an embedded reference renderer, but design the playground as a separate layer:

Decision

Do not treat Stoplight Try It alone as the final GPUaaS developer experience. Evaluate it as one possible renderer or mock mode, then define the GPUaaS playground as a controlled product surface with environment, credential, security, and audit rules.