We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the path variable is part of a file name, the conversion is not possible.
For example, the path for application API is /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json
/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json
When converted to Postman request this become: /2010-04-01/Accounts/:AccountSid/Applications/:Sid.json
/2010-04-01/Accounts/:AccountSid/Applications/:Sid.json
And postman detect the path variable as :Sid.json, which is a problem since the only variable part in the url is the {Sid}.
:Sid.json
{Sid}
The text was updated successfully, but these errors were encountered:
The current solution is to use a script pre-fetch that check if the Sid path parameters ends with .json. If not, add it.
Sid
.json
The script can be added using the following event to the request:
"event": [ { "listen": "prerequest", "script": { "exec": [ "var pathVarSid = pm.request.url.variables.get(\"Sid.json\")", "if (!pathVarSid.endsWith(\".json\")) {", " pm.request.url.variables.upsert({key:\"Sid.json\", value: pathVarSid + \".json\"})", "}" ], "type": "text/javascript" } } ],
Sorry, something went wrong.
vernig
No branches or pull requests
When the path variable is part of a file name, the conversion is not possible.
For example, the path for application API is
/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json
When converted to Postman request this become:
/2010-04-01/Accounts/:AccountSid/Applications/:Sid.json
And postman detect the path variable as
:Sid.json
, which is a problem since the only variable part in the url is the{Sid}
.The text was updated successfully, but these errors were encountered: