-
Notifications
You must be signed in to change notification settings - Fork 463
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
Display params in a nested format also in the API doc HTML. #691
base: master
Are you sure you want to change the base?
Conversation
Is there a way to get this merged? |
69442b9
to
8215e30
Compare
@joshio1 @DavertMik I think this would require a settings, so its OFF by default and people can opt in, if that's what they prefer. |
Although I agree with @mathieujobin here, I'd say that at first we better give users an option to switch this off and have it switched off by default, but mention this in the release notes as well as in README, so users can be actually aware of that. I like the proposed way, but it also seems like an experiment. In the future we could switch to this by default if more and more people will find this more useful. |
@PanosCodes What do you think of this? |
Currently, if the parameters are deeply nested, it is very difficult to understand and comprehend the structure of the request and response params when viewing the API doc in the HTML format. This pull request is an attempt to display these nested parameters in a better way so that we can understand its structure in one go.
Current:
Proposed:
Note that the current structure is still there in the HTML. I have just supplemented that with this nested HTML structure having an hyperlink to the "normal" params.
Also, I have added tooltips which display the description of the params.
The entire idea is to grasp the entire request / response schema in one go. Please let me know what you think.