Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

asCurl does not respect interceptor url changes #903

Closed
kyeotic opened this issue Nov 24, 2016 · 1 comment
Closed

asCurl does not respect interceptor url changes #903

kyeotic opened this issue Nov 24, 2016 · 1 comment
Milestone

Comments

@kyeotic
Copy link

kyeotic commented Nov 24, 2016

I was asked to move this issue here


  • swagger-ui version
    2.2.6

I use a request interceptor to rewrite the URL for requests so that I can provide an Environment/Host selector to users. The interceptor is successful in changing the "Try It Out" requests, and in updating the Request URL section. However, the CURL section does not update.

Notice in the screenshot that the URL path starts with /dev in CURL and /prod in the request URL.

image

It looks like this is due to the curl command using the spec for its url, instead of the request.

@fehguy
Copy link
Contributor

fehguy commented Jan 11, 2017

This is a bug, working on it...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants