{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7804","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7804/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7804/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7804/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/7804","id":303699213,"number":7804,"title":"Python swagger-codegen hard-coded base URL","user":{"login":"boompig","id":2791268,"avatar_url":"https://avatars3.githubusercontent.com/u/2791268?v=4","gravatar_id":"","url":"https://api.github.com/users/boompig","html_url":"https://github.com/boompig","followers_url":"https://api.github.com/users/boompig/followers","following_url":"https://api.github.com/users/boompig/following{/other_user}","gists_url":"https://api.github.com/users/boompig/gists{/gist_id}","starred_url":"https://api.github.com/users/boompig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boompig/subscriptions","organizations_url":"https://api.github.com/users/boompig/orgs","repos_url":"https://api.github.com/users/boompig/repos","events_url":"https://api.github.com/users/boompig/events{/privacy}","received_events_url":"https://api.github.com/users/boompig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T02:09:21Z","updated_at":"2018-03-09T14:28:01Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPlease follow the issue template below for bug reports and feature requests.\r\nAlso please indicate in the issue title which language/library is concerned. Eg:  [JAVA] Bug generating foo with bar \r\n-->\r\n\r\n##### Description\r\n\r\n<!-- describe what is the question, suggestion or issue and why this is a problem for you. -->\r\n\r\nSwagger API client for python should allow for the base URL to be passed via arguments at runtime\r\n\r\n##### Swagger-codegen version\r\n\r\n<!-- which version of swagger-codegen are you using, is it a regression? -->\r\n\r\n2.3.1\r\n\r\n##### Swagger declaration file content or url\r\n\r\n<!-- if it is a bug, a json or yaml that produces it.\r\nIf you post the code inline, please wrap it with\r\n```yaml\r\n(here your code)\r\n```\r\n(for YAML code) or\r\n```json\r\n(here your code)\r\n```\r\n(for JSON code), so it becomes more readable. If it is longer than about ten lines,\r\nplease create a Gist (https://gist.github.com) or upload it somewhere else and\r\nlink it here.\r\n  -->\r\n\r\nAny, can use petstore.\r\n\r\n##### Command line used for generation\r\n\r\n<!-- including the language, libraries and various options -->\r\n\r\nswagger-codegen generate -i swagger.yaml -l python -o client-lib\r\n\r\n##### Steps to reproduce\r\n\r\n<!-- unambiguous set of steps to reproduce the bug.-->\r\n\r\nCannot pass URL to client library\r\n\r\n##### Related issues/PRs\r\n\r\n<!-- has a similar issue/PR been reported/opened before? Please do a search in https://github.com/swagger-api/swagger-codegen/issues?utf8=%E2%9C%93&q=is%3Aissue%20 -->\r\n\r\n##### Suggest a fix/enhancement\r\n\r\n<!-- if you can't fix the bug yourself, perhaps you can point to what might be\r\n  causing the problem (line of code or commit), or simply make a suggestion -->\r\n\r\nInstead of hard-coding the base URL like [here](https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/python/petstore_api/configuration.py#L50), instead pass it as a parameter to __init__ in Configuration (or anywhere else that makes sense)."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/371826968","html_url":"https://github.com/swagger-api/swagger-codegen/issues/7804#issuecomment-371826968","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/7804","id":371826968,"user":{"login":"wing328","id":934260,"avatar_url":"https://avatars2.githubusercontent.com/u/934260?v=4","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T14:28:01Z","updated_at":"2018-03-09T14:28:01Z","author_association":"MEMBER","body":"I think you can change the base path in the python client during runtime.\r\n\r\n"}}
{"actor":{"display_login":"wing328"}}