Use tags for selective endpoints in docs.json #1054
jeremynovey
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have large JSON files for our APIs (some with over 200 endpoints) and want to have an intro page for each endpoint category with matching endpoints listed below that page in the side nav.
Example:
Job Launcher
Current solutions in the docs are not ideal:
FEATURE REQUEST: LIST ALL ENDPOINTS UNDER AN INTRO PAGE USING API "TAGS".
The problem I see is tags can have spaces, but since tags are arrays we can add something for Mintlify to pick up. As long as the first tag listed is the one we want, the others do not show up in a build. At least I could not get any extra tags to show in a browser. So we could add tags in kebob case to the JSON so
tags": ["Job Configuration"]
would becometags": ["Job Configuration","job-configuration"]
. Then in docs.json it could look something like:I don't know what you use to parse docs.json. Here is an example using jq with the above Job Launcher "openapi" for the JSON path and "mintlify-tag" for the tag value:
Which would return:
This looks like what is already used for other methods. Seems easy enough to take from here.
Beta Was this translation helpful? Give feedback.
All reactions