Skip to main content

Test drive an export

Route/ade/dashboard/export/studio

A file that passes validation is legal in its format, but that doesn't make it good. Test drive lets you try the generated file the way its consumers will: read it as documentation, query it, call it as a live API, or put it through the format's own toolchain. It sits under the generated file on the 6. Review & Generate step of the Export studio, with one tab for each tool that fits the format.

Test drive with the redocly lint tab open, showing it is installed with a Run button, and the Mock server tab disabled because mocks are disabled on this serverTest drive with the redocly lint tab open, showing it is installed with a Run button, and the Mock server tab disabled because mocks are disabled on this server
Route/ade/dashboard/export/studio

Choose a tool​

You want to…TabFormatsRuns
Read the API as interactive docs, and try its operationsSwagger UIOpenAPIIn your browser
Read it as a three-pane referenceReDocOpenAPIIn your browser
Explore a schema and run queries against mock dataGraphiQLGraphQLIn your browser
Read an event API by channel, message and payloadAsyncAPI viewerAsyncAPIIn your browser
Call the file as a live API for a whileMock serverOpenAPIOn the server
Run the format's own checker on itToolchain checksOpenAPI (redocly lint), AsyncAPI (asyncapi validate), Protocol Buffers and Connect RPC (buf lint, buf build), GraphQL (rover supergraph compose), TypeSpec (tsp compile), Smithy (smithy build), Cap'n Proto (capnp compile), Thrift (thrift compile), API Blueprint (drafter parse)On the server

A format with none of these tools has no Test drive.

How the pieces fit​

  • The format decides the tabs. Each export format declares which tools can test its output, and the studio draws one tab per tool. A new format brings its own tabs, with no change to the studio. The same list comes from the API as test_tools on each target of GET /v1/export/{tenant}/targets.
  • Browser tools stay in the browser. Swagger UI, ReDoc, GraphiQL and the AsyncAPI viewer read the file you just generated, inside a sandbox with no access to your session, and make no network requests. The one exception is Try it out in Swagger UI, which works only while the mock server runs and sends requests only to that mock.
  • Server tools use the file the server made. The mock server and the toolchain checks never take a file from your browser. They use your last Generate, or re-generate the file on the server. Both run inside your workspace and have limits: a mock lives 30 minutes by default (up to 4 hours), a workspace can have 3 running at once, and each person can run 10 toolchain checks a minute.
  • Unavailable is shown, not hidden. A server tool this server lacks, such as a toolchain that is not installed or mocks that are turned off, still has its tab or row, greyed out, with the reason. Ask your administrator to install the tool or turn the feature on.
  • Results join the review. A finished toolchain check is listed under Toolchain checks beside the verify result. The mock server's request log shows whether each response matched the file's schema.

With the API​

WhatEndpoint
Which tools each format has, and whether each can run hereGET /v1/export/{tenant}/targets (test_tools)
Start, read and stop a test-drive mock/v1/export/{tenant}/mock… (see Mock try-out)
Run a toolchain check and stream its outputPOST /v1/export/{tenant}/verify/tool-checks/{tool}

Where next​