Skip to content
Discussion options

You must be logged in to vote

Thank you, maybe it will be useful for someone, my plugin looks like this:

function preRequest() {
    pps = []
    for (let pp of rf.request.getPathParams()) {
        if (pp.value == "") {
            vv = rf.getEnvVar(pp.name)
            if (vv != undefined) {
                pp.value = vv
                console.log("Replacing empty path parameter '" + pp.name + "' with value '"+ vv +"'.")
            } else {
                console.log("There is not environment variable '" + pp.name + "' to replace empty path parameter with the same name.")
            }
        }
        pps.push(pp)
    }
    rf.request.setPathParams(pps)
}

function postRequest() {
}

if('request' in rf) {
    p…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@flawiddsouza
Comment options

@zabojpetr
Comment options

@flawiddsouza
Comment options

@zabojpetr
Comment options

Answer selected by flawiddsouza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants