DevGrill

OpenAPI Viewer

Browse an OpenAPI or Swagger spec: endpoints, parameters, schemas, and curl for each call.

Runs in your browser

0 chars

Reading an API spec

An OpenAPI (formerly Swagger) spec describes an API: every endpoint, its parameters, the request body it expects and the responses it returns. It's a long YAML or JSON file that's hard to read as text, and setting up Swagger UI just to look at one is a chore.

Paste the spec or open the file and you get its endpoints grouped by tag, with colored methods and a filter. Open an endpoint to see its parameters, request body and responses, with $ref schemas expanded into their fields. Each endpoint also gets a ready-made curl command with an example body, which you can copy or turn into code in the curl Converter.

How to use the OpenAPI Viewer

  1. Paste or open your spec. JSON or YAML, OpenAPI 3.0, 3.1 or Swagger 2.0. Or load the sample shop API.

  2. Find an endpoint. Endpoints are grouped by tag. Filter by path, method, summary or tag.

  3. Open it. See its parameters (* means required), request body and responses, with nested schemas you can fold.

  4. Try it. Copy the curl command, or send it to the curl Converter for fetch, Python, Go and more. Fill in placeholders like <token> first.

Tips

  • If the spec lists several servers (production, sandbox), pick one; the curl commands use it.
  • Example bodies come from the spec's example values where it has them, otherwise from each field's type. Read-only fields like id are left out.
  • $refs to other files or URLs aren't fetched. Bundle the spec into one file first, for example with npx @redocly/cli bundle.

Frequently asked questions

Can I load a spec from a URL?

No. DevGrill never fetches anything from other servers, so a private or internal spec stays on your device. Download the file, then open it here.

Which versions are supported?

OpenAPI 3.0 and 3.1, and Swagger 2.0, in JSON or YAML. Swagger 2.0 body and form parameters are shown as a request body, the way OpenAPI 3 does it.

Does it validate the spec?

It reads what it can and shows it, but it isn't a full spec linter. To check the JSON shape of a request or response, use the JSON Schema Validator.

Is my spec uploaded?

No. Opening a file reads it in your browser, and nothing is sent anywhere.

Related tools