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

Add action to encode component #12

Open
GauthierPLM opened this issue Apr 6, 2023 · 6 comments
Open

Add action to encode component #12

GauthierPLM opened this issue Apr 6, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@GauthierPLM
Copy link

Is your feature request related to a problem?

Encoding URI components is very common when they contains special characters such as / to be used as variables or URI params, but JetClient currently does not have any to do so.

Describe the solution you'd like

When right clicking on a string, add an option to encode the selected text, or the whole string if no text is selected.

Additional context

No response

@GauthierPLM GauthierPLM added the enhancement New feature or request label Apr 6, 2023
@AntonShuvaev
Copy link
Collaborator

The URL is encoded automatically when you send a request. Did you have any issues with it?

@GauthierPLM
Copy link
Author

Yes, one of my APIs take an S3 key as URI parameters, so /{buckedId}/objects/{key}. As this key contains /, the path is not properly processed because JetClient does not encode the / by default.

@AntonShuvaev
Copy link
Collaborator

Will add it to backlog.

For now, you can use String Manipulation plugin with which you can select the string, open Actions, and type and select Encode URL or add a shortcut to it.

@Evenegas4414
Copy link

Hello, this pluggin is very helpful and good.
But I have a problem with the "auto-encode", when I try to use a endpoint and get information about a key, if the key contains a + sign, It is encode as blank space.
There can be an option to disable this feature? "Auto-encoding" I mean.

@calteran
Copy link

+1 on disabling auto-encoding. I have parameters that come pre-encoded from my API. JetClient re-encodes the percent signs and breaks the downline request.

@AntonShuvaev
Copy link
Collaborator

I will add the option for disabling auto-encoding in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants