Preview a fictional API reference with Mintlify

Document GET /kits and a count = 4 example in a local project, without keys, API requests or publication.

Format
Written guide
Updated

Define a demonstration scope

Use an isolated local copy of an already working Mintlify project and an approved installation of the mint command. Do not edit any repository connected to automatic deployment. Without this environment, ask your technical contact to review the fragments rather than installing software for this guide.

The kit API is entirely fictional. We will display a route and an example, not run a server, use a key or test a real response. AI is unnecessary; the local assistant may use the deployed site’s indexed content, so it is not our validation tool.

Create the specification

In the test copy, create openapi.json with exactly this JSON. No servers field, authentication or company URL is included.

{"openapi":"3.0.3","info":{"title":"Fictional kit API","version":"1.0.0"},"paths":{"/kits":{"get":{"operationId":"listKits","summary":"List fictional kits","responses":{"200":{"description":"Fictional kit list","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"}}},"example":{"count":4}}}}}}}}}

  1. Open the isolated copy and confirm that it contains the project’s working docs.json. Do not replace the original.
  2. Add openapi.json at its root. Review the expected elements: GET /kits, operation listKits, response 200, integer count, example 4.

Connect it and disable interaction

In the copy’s docs.json, adapt only the test navigation to this fragment. It is a property to merge into the existing object, not a standalone file:

"navigation":{"groups":[{"group":"Test API","openapi":"openapi.json"}]}

Configure the api block in the same object with this fragment. Merge it into an existing api block rather than creating duplicate api properties:

"api":{"playground":{"display":"simple"}}

  1. Keep other valid docs.json properties, including theme and name. Test API navigation must reference the local openapi.json file.
  2. From this directory, run mint validate using your existing installation. Correct JSON and path errors reported; do not bypass failed validation.
  3. Run mint dev and open only the announced local address. Do not run mint login, publish, push the repository or expose the preview to the network.

Verify the deliverable

Find GET /kits and check its summary, status 200, integer count type and example 4. The interactive panel for sending requests must be absent. If it appears, stop and check api.playground.display = simple before doing anything else.

Change only the example count from 4 to 7 while retaining the integer type, and check that the preview shows 7. The specification describes just one operation and no POST. Record the five expected/observed checks; these are proposed criteria, not tests QAILT claims to have executed.

A missing page suggests an incorrect file path or navigation entry. Fix JSON syntax errors rather than adding real keys. Stop the preview command after review. Any publication is a separate decision.