danielgtaylor / restish

Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in
https://rest.sh/
MIT License
900 stars 74 forks source link

Set value of variable in server URL #259

Open hadjian opened 3 months ago

hadjian commented 3 months ago

Thanks for this wonderful tool!

I am testing with an OpenAPI v3 specification and it contains a variable in the server URL. It doesn't seem that I can set it dynamically, right? So if I want to use a different value for the variable, I have to modify the OpenAPI document and re-sync?

openapi: 3.0.3
servers:
  - url: https://api.example.com/{something}
    description: Production Endpoint
    variables:
      something:
        default: some-value