Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Provide an API endpoint to query available diagram types #1773

Open
jougs opened this issue Aug 19, 2024 · 0 comments
Open

Comments

@jougs
Copy link

jougs commented Aug 19, 2024

I checked both the (opened and closed) issues and pull requests here, as well as the documentation for kroki but could not find anything related to my request. Feel free to close (and maybe point me in the right direction) if this feature already exists and I was just too stupid to find it 😉

TL;DR: I'm currently writing a little frontend for kroki and would like to offer a dropdown menu for selecting the diagram type. Rather than providing the list manually (and possibly extending and fixing it whenever kroki gets updated) It would be incredibly helpful if kroki would provide an endpoint, which would give me a mapping of endpoints to names like this:

{
    "/blockdiag": "BlockDiag",
    "/c4plantuml": "C4 with PlantUML",
    ...
    "/wireviz": "WireViz"
}

This list could be dynamic based on the companions available and ease frontend development for everyone.

I found that Niolesk provides such a list together with its examples, but this also seems to assembled by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant