commercetools / commercetools/commercetools-postman-collection
Auto-encode query parameters
- Dominant language
- Makefile
- Stars
- 126
- Forks
- 176
- PR merge metrics
- No merged PRs in 30d
Description
When using the postmen collection, one of the biggest hurdles is that each Query Parameter has to be encoded manually. Now if you only occasionally using the collection it may not seem like a big deal, but having to constantly right click then encode the values can be quite tiresom.
If the collection would contain the bellow snippet, then this encoding would:
* happen automagically
* can be turned off, if desired.
And it can be defined on the `Project` folder, and inherently every request could leverage it.
```javascript
if (pm.globals.get("PM_DISABLE_AUTO_ENCODE")!=="true") {
pm.request.url.query.each((param) => {
param.value = encodeURIComponent(param.value);
});
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.