Common issues with API References
All of my OpenAPI pages are completely blank
mint dev
locally should reveal some of these issues.To verify your OpenAPI document will pass validation:One of my OpenAPI pages is completely blank
openapi
field in the page metadata. Make sure
the HTTP method and path match the HTTP method and path in the OpenAPI document exactly.Here’s an example of how things might go wrong:openapi
field has a trailing slash, whereas the path in the OpenAPI
document does not.Another common issue is a misspelled filename. If you are specifying a particular OpenAPI document
in the openapi
field, ensure the filename is correct. For example, if you have two OpenAPI
documents openapi/v1.json
and openapi/v2.json
, your metadata might look like this:Requests from the API Playground don't work
POST
request to the
/api/request
path on the docs site. If your reverse proxy is configured to only allow GET
requests, then all of these requests will fail. To fix this, configure your reverse proxy to
allow POST
requests to the /api/request
path.Alternatively, if your reverse proxy prevents you from accepting POST
requests, you can configure Mintlify to send requests directly to your backend with the api.playground.proxy
setting in the docs.json
, as described in the settings documentation. When using this configuration, you will need to configure CORS on your server since requests will come directly from users’ browsers rather than through your proxy.