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

Enable "Fill Defaults" after "Clearing" the request #105

Open
wparad opened this issue Sep 14, 2022 · 1 comment
Open

Enable "Fill Defaults" after "Clearing" the request #105

wparad opened this issue Sep 14, 2022 · 1 comment

Comments

@wparad
Copy link
Member

wparad commented Sep 14, 2022

from @nikitapatel029

One more thing, if tool has features to clear the item, it should have "redo option" /"fill with default values" something like that which will bring default example under body/query. As right now what is happening if we have given requestbody textarea and user by mistaken clicked on clear every thing gets erased(that's ok) but if they want to see again the default examples then they're not able to see anywhere until and unless they refreshed the screen.

Since we want to avoid extra buttons in most cases, one solution I can think of is to have the CLEAR button replaced with FILL DEFAULTS when the body is empty (null, '', undefined, [], {}) or something like that.

Remember to vote for this issue with 👍 or 👎

@nikitapatel029
Copy link

Yes that is also good.

In some of scenarios it might looks odd, suppose for there is few api where having few inputs(one or two) and if we haven't set default example then when user click on clear button it will just change with fill default and again when they click just text will be changed, nothing will happen in request body.

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

2 participants