You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the swagger codegen to design and then stub out my Api. On the server side I'm using asp dotnet Core. The generated code is very elaborate but at hard as I try I can't find online any real info about how to control the output. Specifically I would really just like to stub out interfaces for my controllers and generate model definitions. I then want to handle the implementation of those interfaces myself seperately. I also don't need a whole .csproj and .sln really - I just want the interfaces and models. Is this possible? Where can I find documentation relating to the asp dotnet Core options?
Description
I'm trying to use the swagger codegen to design and then stub out my Api. On the server side I'm using asp dotnet Core. The generated code is very elaborate but at hard as I try I can't find online any real info about how to control the output. Specifically I would really just like to stub out interfaces for my controllers and generate model definitions. I then want to handle the implementation of those interfaces myself seperately. I also don't need a whole .csproj and .sln really - I just want the interfaces and models. Is this possible? Where can I find documentation relating to the asp dotnet Core options?
Swagger-codegen version
https://hub.docker.com/r/swaggerapi/swagger-codegen-cli (latest)
Swagger declaration file content or url
https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v2.0/json/petstore-minimal.json
Command line used for generation
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate -i /local/petstore-minimal.json -l as pnetcore -o /local/gen
Steps to reproduce
Related issues/PRs
Couldn't find any?
Suggest a fix/enhancement
More documentation.
The text was updated successfully, but these errors were encountered: