Skip to content

Conversation

@slusarz
Copy link
Contributor

@slusarz slusarz commented Dec 18, 2024

DOV-7017

Still have to do all the hardwork of adding the various examples and response data to doveadm.js... But don't want to wait for that since it's not necessary for adding this base functionality.

(FYI: I already have done some work on the examples data, so maybe I'll throw that in a WIP MR for now.)

@slusarz slusarz enabled auto-merge (rebase) December 18, 2024 02:12
@slusarz slusarz mentioned this pull request Dec 18, 2024
@github-actions

This comment has been minimized.

These example arguments will be used for building example command/HTTP
queries
Dynamically generate this data only when the user clicks on the API
documentation for a command, otherwise we are creating giant pages
which will noticeably slowdown browsing.

Additionally, add the command name to the HTTP output as well, since
that was previously missing (although it can be found in the request
example, it is not clearly labeled there).
Namely, hide under a clickable element, so user only sees the doveadm mode
they need after clicking.
The old 'fields' entry in data/doveadm.js has been replaced with the
'response' entry.

This new entry allows for text description and data type output.

Output example JSON server response in the HTTP API block.
@slusarz slusarz merged commit af259ad into dovecot:main Dec 20, 2024
5 checks passed
@slusarz slusarz deleted the doveadm_examples branch January 15, 2025 04:34
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

Successfully merging this pull request may close these issues.

2 participants