4 ms·
Per the SDKs ... If you've a Swagger/OpenAPI spec, you can use Swagger Codegen (https://github.com/swagger-api/swagger-codegen https://github.com/swagger-api/s
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 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 example: https://github.com/wing328/petstore-php https://github.com/wing328/petstore-php
You can also use Swagger Codegen to generate server stub in SpringMVC, PHP Slim and more.
Disclosure: I'm a top contributor to Swagger Codegen.
(To convert RAML, API blueprint, WSDL, etc to Swagger/OpenAPI spec 2.0, please try https://github.com/lucybot/api-spec-converter https://github.com/lucybot/api-spec-converter - an open-source converter written in NodeJS)