swagger-api/swagger-codegen
View on GitHub ↗ ★ 17,795 Mustache
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
55 mentions on Hacker News by 24 people: 12 stories, 43 comments · first 2012-08-28 · latest 2025-09-13
20082026
-
My servers are Java, my clients are Python. I use the Spring & Python generators in https://github.com/swagger-api/swagger-codegen
comment by RadiozRadioz · 2025-09-13 · in Oq: Terminal OpenAPI Spec Viewer -
…code generators or it builds a proprietary code generator from scratch? Swagger Codegen: https://github.com/swagger-api/swagger-codegen OpenAPI Generator: https://github.com/OpenAPITools/openapi-generator AutoRest:…
comment by mattzzz · 2021-09-17 · in Adopting the OpenAPI schema to generate Plaid’s SDKs -
…at OpenAPI Generator ( https://github.com/openapitools/openapi-generator ) or Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) - especially if the API provider has an official OpenAPI/Swagger specification. (If not you…
comment by alexpeattie · 2020-05-23 · in Ask HN: Best practices (and examples) for designing client libraries for APIs? -
…it is also broken under 3.7. [2] [0]: https://github.com/kubernetes-client/python/issues/558 [1]: https://github.com/swagger-api/swagger-codegen/pull/8401 [2]: It bit me.
comment by OJFord · 2018-12-18 · in Reasons Python Sucks -
…code with far greater comfort, and it seems to support multiple Typescript clients already. [0] https://github.com/swagger-api/swagger-codegen [1] https://github.com/RSuter/NSwag
comment by ThePadawan · 2018-10-25 · in gRPC-Web is going GA -
…Python, which swagger codegen supports client generation for but not yet server generation (but see https://github.com/swagger-api/swagger-codegen/issues/7451 ). Admittedly, gRPC doesn't support asyncio either (…
comment by philwelch · 2018-10-25 · in gRPC-Web is going GA -
…the real ones returned by the backend) with i.e. joi [2]. [0]: https://github.com/nock/nock [1]: https://github.com/swagger-api/swagger-codegen [2]: https://github.com/hapijs/joi
comment by littlecranky67 · 2018-08-24 · in Why use GraphQL, good and bad reasons -
…- https://github.com/swagger-api/swagger-parser/blob/master/RE... And basically everything else. https://github.com/swagger-api/swagger-codegen/blob/master/R...
comment by scarface74 · 2018-05-09 · in Everything old is new again: Microservices -
…I recommend they look at the swagger-codegen[0] api stub templates. There clients as well. [0]: https://github.com/swagger-api/swagger-codegen/tree/master/m... > At some point, you write a library right? Normally a flask-ext forms around a…
comment by oneweekwonder · 2018-04-27 · in Flask 1.0 Released -
…[1]: https://github.com/swagger-api/swagger-editor/tree/2.x [3]: https://github.com/swagger-api/swagger-codegen/
comment by oneweekwonder · 2018-04-13 · in EdgeDB: A New Beginning -
…), you can autogenerate Rust client and server stubs using the standard Swagger code generators ( https://github.com/swagger-api/swagger-codegen/ ). In case you're not familiar with Swagger/OpenAPI, it's a format for specifying (generally…
comment by maffydub · 2018-03-09 · in Writing a Microservice in Rust -
Hi, for any feedback on the Go server stub generator, please let us know via https://github.com/swagger-api/swagger-codegen/issues/new . Also worth sharing with you that the Go client generator in the latest master (2.3.0) has been…
comment by wing328hk · 2017-10-07 · in AutoRest: OpenAPI Specification code generator -
It's fairly easy to modify for your needs though, have a look at the templates: https://github.com/swagger-api/swagger-codegen/tree/master/m... You can create a copy of that template directory, adjust them and pass it as a parameter to…
comment by elcapitan · 2017-10-06 · in AutoRest: OpenAPI Specification code generator -
…generators (C# Nancy, Python Flask, etc). For a full list, please refer to the project README. [1] https://github.com/swagger-api/swagger-codegen Discloure: I'm a top contributor to the project.
comment by wing328hk · 2017-06-26 · in pREST – A fully RESTful API from any existing PostgreSQL database writting in Go -
…to generate API documentations. If you need help using the generator, please open a a ticket via https://github.com/swagger-api/swagger-codegen/issues/new [1] https://github.com/swagger-api/swagger-codegen
comment by wing328hk · 2017-05-17 · in Ask HN: What tools do you use for Developer Portals / API Docs? -
…but we usually do it with reasons based on feedback from developers. Please share with us more via https://github.com/swagger-api/swagger-codegen/issues/new so that we can further improve the output. You may find Swagger Codegen a huge…
comment by wing328hk · 2017-04-05 · in Problems with Swagger -
…the others (e.g. Ruby, PHP, C#). For the issues with Qt5 C++ generator, please open an issue via http://github.com/swagger-api/swagger-codegen/issues/new so that the community can help work on it. > Mustache is fine for doing a little view…
comment by wing328hk · 2017-04-05 · in Problems with Swagger -
…looked into the infrastructure of the codegen project, I found... mustache. Check it out yourself: https://github.com/swagger-api/swagger-codegen/tree/master/m... Mustache is fine for doing a little view rendering, but for language…
comment by mr_tristan · 2017-04-04 · in Problems with Swagger -
…OpenAPI 3.0 so eventually Swagger Codegen will support Swagger 1.2, 2.0 and OpenAPI 3.0. [1] https://github.com/swagger-api/swagger-codegen [2] https://github.com/swagger-api/swagger-parser
comment by wing328hk · 2017-03-22 · in A Visual Guide to What's New in Swagger 3.0 -
…server stubs as well as API documentations. [1] https://github.com/OAI/OpenAPI-Specification [2] https://github.com/swagger-api/swagger-codegen Disclosure: I'm a top contributor to Swagger Codegen.
comment by wing328hk · 2017-03-10 · in Django REST framework 3.6 released -
…please give Swagger Codegen [1] a try and the latest master supports both Swift 2.x and 3. [1]: https://github.com/swagger-api/swagger-codegen Disclaimer: I'm a top contributor to the project.
comment by wing328hk · 2017-02-27 · in Show HN: Swift SOAP Client library through code generation -
…PHP, etc), server stubs (e.g. C# NancyFx, PHP Lumen, Python Flask, etc) and API documentations. [1] https://github.com/swagger-api/swagger-codegen
comment by wing328hk · 2017-02-23 · in API Design Guide -
…generate API clients in Java, C#, Javascript, Typescript, Ruby, ObjC, Swift and more. [1]: https://github.com/swagger-api/swagger-codegen Disclosure: I'm a top contributor to Swagger Codegen
comment by wing328hk · 2016-10-12 · in Ask HN: Back-end team does not document their APIs. How do I convince them? -
…to generator.swagger.io. Please give it a try. For any issue/question, please log a ticket via https://github.com/swagger-api/swagger-codegen/issues/new
comment by wing328hk · 2016-07-19 · in Swagger-codegen 2.2.0 Released -
…OpenAPI/Swagger spec, you can generate NancyFx server stub using Swagger Codegen. Please refer to https://github.com/swagger-api/swagger-codegen/wiki/Server-s... for more information.
comment by wing328hk · 2016-07-18 · in Nancy – A lightweight web framework for .NET -
…API client (lang: go), there are about 40 PRs (enhancements, bug fixes)[1] to Go API client since https://github.com/swagger-api/swagger-codegen/pull/1747 was merged into master. Please pull the latest master to give it another try and see…
comment by wing328hk · 2016-06-30 · in Goa: Design-First API Generation -
…for go/node). - Go - This thread on the PR adding go client generation is a good introduction - https://github.com/swagger-api/swagger-codegen/pull/1747 , basically the generator currently only supports very simplistic datatypes and will…
comment by templaedhel · 2016-06-29 · in Goa: Design-First API Generation -
…in Slate since the format seems to be similar. Actually I opened an issue in swagger-codegen repo ( https://github.com/swagger-api/swagger-codegen/issues/1387 ) and we talked about it. The reason that I created a separate project is that…
comment by buremba · 2016-06-25 · in Ask HN: What is your go-to example for a good REST API? -
The latest version of Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) also automatically generates documentation (markdown) for API clients/libraries, e.g. installation, getting start, doc for API endpoints and models.…
comment by wing328hk · 2016-06-25 · in Ask HN: What is your go-to example for a good REST API? -
My team has been using Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) since stable version 2.1.5 to generate C#, Ruby and PHP API clients and the experience is pretty good so far.
comment by gchan1979 · 2016-06-13 · in Ask HN: Do you use(which?) automatic rest api client/server/docs generators? -
…What do you think about automatic generation of client-code in various languages? Swagger-Codegen ( https://github.com/swagger-api/swagger-codegen ) is a pretty mature, free and open-source project for generating API clients (e.g. ObjC,…
comment by wing328hk · 2016-04-28 · in Why isn't your API specification public? -
Per the SDKs ... If you've a Swagger/OpenAPI spec, you can use Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ), a free and open-source project, to generate API clients (SDKs) in C#, Ruby, PHP, Java, ObjC, etc. Here is an…
comment by wing328hk · 2016-04-28 · in Why isn't your API specification public? -
Have you tried using Swagger-Codegen ( https://github.com/swagger-api/swagger-codegen ) to generate API clients, documentation (markdown) and test spec? Disclosure: I'm a top contributor to Swagger-Codegen
comment by wing328hk · 2016-04-10 · in Facebook quietly deprecated their Python/Ruby libraries for Instagram API -
You may want to take a look at Swagger-Codegen ( https://github.com/swagger-api/swagger-codegen ) as well to generate ASP.NET 5 server stub or C# API client given a Swagger/OpenAPI spec. Disclosure: I'm a top contributor to swagger-codegen
comment by wing328hk · 2016-03-22 · in Almost everyone is doing the API economy wrong -
If you've a Swagger/OpenAPI spec, you can use Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) to generate API clients (SDKs) in C#, Ruby, PHP, Java, ObjC, etc. Here is an example: https://github.com/wing328/petstore-php…
comment by wing328hk · 2016-03-22 · in Almost everyone is doing the API economy wrong -
https://github.com/swagger-api/swagger-codegen#companiesproj... shows some companies using OpenAPI/Swagger and Swagger Codegen "for the win" - automatically generate API client and server stub given an OpenAPI/Swagger spec. (We obtained…
comment by wing328hk · 2016-02-22 · in Microservices, the Unix Philosophy, and the Richardson Maturity Model -
For generating API client or server side code, please try https://github.com/swagger-api/swagger-codegen and open a ticket via https://github.com/swagger-api/swagger-codegen/issues if you need any assistance. Disclaimer: top contributor to…
comment by wing328hk · 2016-02-22 · in Microservices, the Unix Philosophy, and the Richardson Maturity Model -
…around it is pretty half-assed. Having a machine-readable spec is a game changer, though. [1]: https://github.com/swagger-api/swagger-codegen/wiki/Creating...
comment by matt_kantor · 2015-01-19 · in Ask HN: What's the best way to write an API spec? -
…to enable wrappers for Go, Scala, Flash, Java, Objc, PHP, Python, Python3, Ruby, Node, and more. https://github.com/swagger-api/swagger-codegen
comment by kevinconroy · 2014-12-15 · in An experimental, automatically generated set of AWS clients in Go -
https://github.com/wordnik/swagger-codegen does javascript, scala, java, objective-c, php, python (3), ruby, android, and even flash Also has the benefit of a commercial backer ( https://helloreverb.com ) and a real app depending on it
comment by fehguy · 2014-01-04 · in Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby -
https://github.com/wordnik/swagger-codegen
comment by matt_kantor · 2014-01-03 · in Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby -
Generating a server stub was done long ago, in swagger, which is completely OSS: https://github.com/wordnik/swagger-codegen#to-build-a-server... And it's based on an intuitive JSON structure.
comment by fehguy · 2013-07-15 · in Apiary.io – REST tools for API documentation and testing