wiztools / rest-client

Tool to test HTTP/RESTful webservices.
Apache License 2.0
1.53k stars 372 forks source link

Make the key-value editor of the Body tab to read the current values #72

Closed negora closed 6 years ago

negora commented 6 years ago

Dear team of Wiztools:

Right now, when you invoke the key-value editor in the Body tab (using the Insert parameters button), it asks you to erase the body:

Body text exists. Erase?

Wouldn't it be much more useful if it parsed the current values from the body, instead of erasing them? Editing the parameters directly in application/x-www-form-urlencoded format is complicated. Specially because the editor hasn't got an option to wrap words dinamically.

Thank you.

subwiz commented 6 years ago

Have you checked the Multi-insert option?

rc
negora commented 6 years ago

Hi @subwiz:

Thanks for your help. I know the option, but it "only" avoids the need of escaping the parameters by hand. Which is a big aid; don't get me wrong.

However, when you save a request to disk, then make other requests, and finally open the saved request again, the Multi-insert option does not parse the current body into separated parameters, so you can edit them comfortably. It seems to recover only the parameters that you edited the last time in the Multi-insert window, but not the ones that are currently in the Body field of the main window.

negora commented 6 years ago

Thank you a lot @subwiz . I'm looking forward to test the next release ;) .