swagger-api / swagger-api/swagger-codegen
Host ignored by Swagger Codegen while created spring Server
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I just use swagger codegen to create the spring server but when I create it and run it shows that the spring server sending a request to its own server instead of host and basepath specify by me in swagger JSON which it uses to generated
Swagger-codegen version
2.4/19
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
Start by reproducing the issue with Swagger Codegen 2.4/19: generate and run a Spring server from a Swagger JSON definition containing a host and basePath. Inspect the generated server's request handling and verify that requests use the specified host and basePath instead of the server itself.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100