-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
Update host name in Swagger file automatically #1360
Comments
The user uploading the document should also be notified about replacing the host URL |
Option: Write an instruction how to change the host for Swagger file, if they want calls from Swagger UI to go through proxy. (Construct the URL for the instruction programmatically) |
Might be good to have by default make it go through apinf. IMO doing requests straight to backend should be blocked, except if it comes from apinf. |
This might also close #1430. |
@marla-singer Hi, can you let us know what is your status with tasks #1360 and #1490? |
Here is my suggestion for replacing the host
|
A swagger file will include a host name. This should be replaced with the URL used at apinf.io
e.g. api.mycompany.com/list (original swagger file) > apinf.io/mycompany/list?key=abc (swagger-ui)
Also the key should be included if required. If user is not logged in, then show a message that in order to use the API, you need a key (and thus an account).
Definition of done
e.g. api.mycompany.com/list (original swagger file) > apinf.io/mycompany/list?key=abc (swagger-ui)
Open issue: What if the user does not have an API key? Either the user could be an anonymous (unregistered) user or a registered user who has not pressed the Get API key button?
The text was updated successfully, but these errors were encountered: