Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wing328hk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
91.
▲
by
wing328hk
10y ago
> I also tried out the "codegen" and a few other projects that generate boilerplate from a spec (for Python) - the code it generated was frustrating, lengthy, and much more complex than the simple endpoints that I quickly wrote
92.
▲
by
wing328hk
10y ago
> I've found swagger codegen to be really, really inconsistent between different implementations. A few of them - I recall we had a team using Qt - didn't even generate compilable code. When I looked into the infrastructure of
93.
▲
by
wing328hk
10y ago
Swagger Codegen [1] is a free, open source code generator that works with Swagger 1.2, 2.0 and supports 30+ API clients, 20+ server stubs and API documentations: - API clients: ActionScript, Bash, C# (.net 2.0, 4.0 or later), C++ (cpprest,
94.
▲
by
wing328hk
10y ago
Just want to add that swagger-js is a "dynamic" API client, which means it will load the OpenAPI/Swagger spec [1] during runtime. If you prefer static API clients/SDKs, please try Swagger Codegen [2] (free, open-source)
95.
▲
Swagger Codegen 2.2.2 has been released
(github.com)
1 points
by
wing328hk
10y ago
|
0 comments
96.
▲
by
wing328hk
10y ago
If anyone is looking for an auto-generated Swift REST client, 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
97.
▲
by
wing328hk
10y ago
If your REST API is documented in OpenAPI/Swagger spec, then you can use Swagger Codegen [1] to generate API clients (Java, C#, PHP, etc), server stubs (e.g. C# NancyFx, PHP Lumen, Python Flask, etc) and API documentations. [1] https:
98.
▲
by
wing328hk
10y ago
There are other tools/plug-ins to generate OpenAPI/Swagger spec (1.2 or 2.0) based on annotations in the code. Please refer to http://swagger.io/open-source-integrations/ for more information. If the REST API
99.
▲
by
wing328hk
10y ago
3Scale was acquired by Redhat (not IBM): https://www.redhat.com/en/about/press-releases/red-hat-acqui...
100.
▲
by
wing328hk
10y ago
Tony Tam has deployed v2.2.0 of swagger codegen 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
101.
▲
by
wing328hk
10y ago
Good question. It's not yet deployed to generator.swagger.io (used by editor.swagger.io). Will keep you posted.
102.
▲
Swagger-codegen 2.2.0 Released
(github.com)
13 points
by
wing328hk
10y ago
|
4 comments
103.
▲
by
wing328hk
10y ago
For those who already have an 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 in
104.
▲
by
wing328hk
10y ago
For Go 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
105.
▲
by
wing328hk
10y ago
There are many plug-ins to to generate OpenAPI/Swagger spec from annotations in the source code. For C#, please try https://github.com/domaindrivendev/Swashbuckle For PHP, please try https://github.com&
106.
▲
by
wing328hk
10y ago
I notice that you put all the clients (C#, Java, Ruby, PHP, etc) under the same Github project. I would suggest you to create separate Github repo for API clients in different languages so that developers can install the PHP, Python, Ruby,
107.
▲
by
wing328hk
10y ago
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
108.
▲
by
wing328hk
10y ago
Re: 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
109.
▲
by
wing328hk
10y ago
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
110.
▲
Swagger-Codegen 2.1.6 Released
(github.com)
1 points
by
wing328hk
11y ago
|
0 comments
111.
▲
by
wing328hk
11y ago
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
112.
▲
by
wing328hk
11y ago
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 c
113.
▲
by
wing328hk
11y ago
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:
114.
▲
by
wing328hk
11y ago
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 O
115.
▲
by
wing328hk
11y ago
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 nee
116.
▲
Swagger-codegen 2.1.4 Released
(github.com)
5 points
by
wing328hk
11y ago
|
0 comments
117.
▲
SmartBear Launches Open API Initiative with Key Industry Leaders (Google,IBM,MS)
(smartbear.com)
5 points
by
wing328hk
11y ago
|
1 comments
118.
▲
by
wing328hk
12y ago
I got 'This site is currently not available...' when accessing the site.
119.
▲
by
wing328hk
12y ago
The API looks very easy to use. Anyway, I created some REST API wrappers to given another option to the developers for accessing the API: http://restunited.com/releases/426944488402847511/wrappers
120.
▲
by
wing328hk
12y ago
Definitely less than an hour (around 30 minutes if I recall correctly) as the SDKs, documentation, sample codes are automatically generated after entering the endpoint definition. Please give it a try at http://restunited.com .
More ›