danirod / cartero

Make HTTP requests and test APIs
https://cartero.danirod.es
GNU General Public License v3.0
330 stars 24 forks source link

Tab to explore and update query params #35

Closed danirod closed 1 month ago

danirod commented 1 month ago

Most programs like this have a tab for this, and when using Cartero I find that not having a feature like this makes my work more difficult.

There should be an additional tab called Parameters, with a KeyValuePane inside.

Modifying the URL in the request_url field should update the parameters presented in the field. Modifying the contents of the KeyValuePane for the parameters should cause the parameters to be grouped again into a querystring, and the request_url should have its current URL changed as well.

Disabling a param from the pane should remove it from the URL as well.

I believe this is going to be tricky because changing the contents of the request_url after touching the pane may cause a "request_url has changed" event to fire back, entering an infinite loop. I suspect I'm going to need to add a mutex that prevents both event listeners from trying to update one each other.