cancel
Showing results for 
Search instead for 
Did you mean: 

generate dot net SDK using swagger

Highlighted
New Contributor

generate dot net SDK using swagger

Hi,

 

Iam trying to generate the SDK in dot net core using swagger (yaml file) ,using swagger codegen ,does it support the SDK generation in dot net core ?

 

Thanks,

Ashish Kaushik

4 REPLIES 4
Staff

Re: generate dot net SDK using swagger

Hello, yes, it is supported, you can generate code using codegen, this is an example with CLI codegen app:

 

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i inputFile.yaml -l aspnetcore -o output-dir
New Contributor

Re: generate dot net SDK using swagger

I tried this but got this error :

 

Exception thrown: 'System.IO.FileNotFoundException' in Newtonsoft.Json.dll Exception thrown: 'Ens.Sdk.Client.ApiException' in Ens.Sdk.dll

New Contributor

Re: generate dot net SDK using swagger

Exception in thread "main" java.lang.RuntimeException: Can't load config class with name aspnetcore Available: android

New Contributor

Re: generate dot net SDK using swagger

Available languages: [android, aspnet5, async-scala, cwiki, csharp, cpprest, dart, flash, python-flask, go, groovy, java, jaxrs, jaxrs-cxf, jaxrs-resteasy, jaxrs-spec, inflector, javascript, javascript-closure-angular, jmeter, nancyfx, nodejs-server, objc, perl, php, python, qt5cpp, ruby, scala, scalatra, silex-PHP, sinatra, rails5, slim, spring, dynamic-html, html, html2, swagger, swagger-yaml, swift, tizen, typescript-angular2, typescript-angular, typescript-node, typescript-fetch, akka-scala, CsharpDotNet2, clojure, haskell, lumen, go-server]

New Here?
Join us and watch the welcome video:
Watch the New Interview
APITestingMistake#2
Top Kudoed Authors