swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
For the reference, I used this Swagger Demo yaml spec (pet store) to understand REST Api and generated swagger server using swagger editor online, which basically create server code artifacts nicely for Python Flask server, Python client . I want to run/test generated swagger server code together. But when I tried to run this from python terminal locally, I had following error:
{
"detail": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
I can't run swagger server which is generated based on Demo Api specification file from swagger editor. I did not see any additional directions in READMED doc produced during generation.
Are there any documentation to understand this process better ?
why? what's the solution to run swagger server locally?
I did try of using different host and post but still can't open swagger server. any idea about this?posted
I find these issues raised in many places years ago, but no solutions posted for it.
Thanks for reviewing my threads.
For the reference, I used this Swagger Demo yaml spec (pet store) to understand REST Api and generated swagger server using swagger editor online, which basically create server code artifacts nicely for Python Flask server, Python client . I want to run/test generated swagger server code together. But when I tried to run this from python terminal locally, I had following error:
I can't run swagger server which is generated based on Demo Api specification file from swagger editor. I did not see any additional directions in READMED doc produced during generation.
Are there any documentation to understand this process better ?
why? what's the solution to run swagger server locally?
I did try of using different host and post but still can't open swagger server. any idea about this?posted
I find these issues raised in many places years ago, but no solutions posted for it.
Is this a bug or outstanding issue with swagger?
Swagger-codegen version 2.0
Command line used for generation
Steps to reproduce
**The above steps produce the reported error**
Suggest a fix/enhancement