swagger-api / swagger-api/swagger-codegen
python-flask server problem
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I use "swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l python-flask -o ." to generate a python flask server, but I can not visit "http://localhost:8080/v2/ui/" and "http://localhost:8080/v2/swagger.json" in README.

swagger-codegen version 3.0.25
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command shown in the issue with swagger-codegen 3.0.25 and inspect the generated Python Flask server against the README URLs /v2/ui/ and /v2/swagger.json. Determine why those documented endpoints cannot be visited; done means the generated server serves both URLs as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100