Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable more language in swagger codegen? #5464

Closed
ChandrakantRathod opened this issue Apr 24, 2017 · 5 comments
Closed

How to enable more language in swagger codegen? #5464

ChandrakantRathod opened this issue Apr 24, 2017 · 5 comments

Comments

@ChandrakantRathod
Copy link

ChandrakantRathod commented Apr 24, 2017

Description

I have downloaded swagger codegen from Github. Currently its allow to generate only 8 languages for client code generation by default like below...

Curl, Java, Android, Obj-C, JavaScript, C#, PHP, Perl, Python

We want additional languages support like below...
Raw, cURL, Node.js, Ruby, Go, Visual Basic, Groovy, Swift

We want a rest of languages support for client code.

Do we need to change any configuration in the code to provide the rest of the languages?
or
Do we need to write client templates for rest the languages?

Can you please guide us? Prompt reply is highly appreciated

Swagger-codegen version

2.3.0 | Apr/May 2017 | 1.0, 1.1, 1.2, 2.0 | Minor release with breaking changes

@ChandrakantRathod ChandrakantRathod changed the title I have downloaded swagger codegen from Github How to enable more language in swagger codegen? Apr 24, 2017
@wing328
Copy link
Contributor

wing328 commented Apr 24, 2017

@ChandrakantRathod swagger codegen supports the following generators (client, server documentation).

aspnet5
aspnetcore
async-scala
bash
cwiki
csharp
cpprest
dart
elixir
flash
python-flask
go
groovy
java
jaxrs
jaxrs-cxf-client
jaxrs-cxf
jaxrs-resteasy
jaxrs-resteasy-eap
jaxrs-spec
jaxrs-cxf-cdi
inflector
javascript
javascript-closure-angular
jmeter
nancyfx
nodejs-server
objc
perl
php
python
qt5cpp
ruby
scala
scalatra
finch
silex-PHP
sinatra
rails5
slim
spring
java-play-framework
dynamic-html
html
html2
swagger
swagger-yaml
swift
swift3
tizen
typescript-angular2
typescript-angular
typescript-jquery
typescript-node
typescript-fetch
akka-scala
CsharpDotNet2
clojure
haskell
lumen
go-server
erlang-server
undertow
msf4j
ze-ph

which covers what you need except Visual Basic, "cURL", Raw (?)

To add new client generator, https://github.com/swagger-api/swagger-codegen/wiki/How-to-add-a-generator-for-a-new-language-or-framework is a good starting point.

@wing328 wing328 added this to the v2.2.3 milestone Apr 24, 2017
@ChandrakantRathod
Copy link
Author

ChandrakantRathod commented Apr 24, 2017

image

I downloaded swagger codegen from github and setup project in my local system, also downloaded swagger-editor in my local system and map swagger codegen and swagger editor and when i generated client for html2 then i am able to see tabs of client code for only eight languages which i have mentioned in my question and as shown in the above image. I know that swagger support all the languages which you mentioned then my problem is why I can see client code for only eight languages?

I want to enable rest of the languages which swagger support. So can you please suggest me how to enable/active rest of the languages, i mean which configuration and files i need to change?

@wing328
Copy link
Contributor

wing328 commented Apr 24, 2017

Currently, html2 does not support code samples for all languages. If you want to add code samples for other langauges, #4575 is a good reference.

Most API client also comes with auto-generated documentation (markdown) with code samples: #2359

@ChandrakantRathod
Copy link
Author

Thanks a lot for prompt reply...:)

@wing328
Copy link
Contributor

wing328 commented Apr 24, 2017

No problem. Let us know if you've further question or you want to work on the enhancement.

@wing328 wing328 closed this as completed Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants