swagger-api/swagger-codegen

I suggest to create interfaces for PHP-client

Open

#6,271 建立於 2017年8月9日

在 GitHub 查看
 (3 留言) (1 反應) (0 負責人)HTML (5,474 fork)batch import
Client: PHPGeneral: Suggestionhelp wanted

倉庫指標

Star
 (12,701 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Description

I need to implement caching for classes. I can use decorators or call cache from each method. But decorators cannot be used with DI because classes don't have an interfaces. What about add interfaces to generation?

Example for java.

Swagger-codegen version

2.2.3

Swagger declaration file content or url

My swagger-magento2-client (generated by swagger).

Command line used for generation

Example of config.json

{
    "composerVendorName": "springimport",
    "composerProjectName": "swagger-magento2-client",
    "variableNamingConvention": "camelCase",
    "invokerPackage": "SpringImport\\Swagger\\Magento2\\Client"
}
java -jar swagger-codegen-cli.jar generate -i http://devdocs.magento.com/swagger/schemas/latest-2.1.schema.json -l php -o /home/swagger-codegen2/tmp/php_api_client -c /home/swagger-codegen2/config.json

貢獻者指南