Forum Discussion

pjw's avatar
pjw
Occasional Contributor
9 years ago
Solved

How do I set the endpoint as an Environment Variable in an HTTP Request

Hi.   I can set the Environement and add an Endpoint which gets picked up by a REST request.   However, I can't seem to get set an Environment Variable or pick up the endpioint for a HTTP Resques...
  • pjw's avatar
    pjw
    9 years ago

    Thank you Tanya.

     

    I found another way to do it.

     

    You can create a Custom Property (e.g.https_endpoint) for each environment value and then replace the Endpoint string with

     

    ${#Project#https_endpoint}

     

    It will replace at runtime depending which environment is selected.

     

    Cheers,

    Paul