swagger-api / swagger-api/swagger-codegen

python-flask server problem

Open
#10,971 1 comment 0 reactions 0 assignees View on GitHub

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.
11111

swagger-codegen version 3.0.25

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.