Reference OpenAPI endpoints in your docs pages
mint openapi-check <openapiFilenameOrUrl>
openapi
field to a tab in the docs.json
. This field can contain either the path to an OpenAPI document in your docs repo, or the URL of a hosted OpenAPI document. Mintlify will automatically generate a page for each OpenAPI operation and place them in the tab.
Example with Tabs:
openapi
property to any navigation divisiontitle
: The summary
field from the OpenAPI operation, if present. Otherwise a title generated from the HTTP method and endpoint.description
: The description
field from the OpenAPI operation, if present.version
: The version
value from the anchor or tab, if present.deprecated
: The deprecated
field from the OpenAPI operation, if present. If true, a deprecated label will appear next to the endpoint in the side navigation and next to the title of the endpoint page.openapi
field.
By using the OpenAPI reference, the name, description, parameters, responses,
and the API playground will be automatically generated from the OpenAPI document.
If you have multiple OpenAPI files, include the path to the OpenAPI file to ensure Mintlify finds the correct OpenAPI document. This is not required if you have
only one OpenAPI file - it will automatically detect your OpenAPI file.
If you want to reference an external OpenAPI file using this method, provide the file’s URL in the docs.json. See here for the correct format.
-o
flag to specify a folder to populate the files into. If a folder is
not specified, the files will populate in the working directory.
components.schemas
field: