{"repo":"apioo/psx-api","free":true,"listed":false,"github":"https://github.com/apioo/psx-api","clone":"git clone https://github.com/apioo/psx-api.git","description":"TypeAPI parser and SDK code generator","language":"PHP","stars":37,"topics":["openapi","swagger","php","code-generator","typeapi"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"API This library provides an attribute parser to dynamically generate a TypeAPI specification from any controller (code-first). Based on the specification it is then possible to generate client SDKs or an OpenAPI specification. We provide also a hosted version of this code generator. For more integration options you can also take a look at the SDKgen project which provides a CLI binary or GitHub action to integrate the code generator. Usage The root model object is called a Specification which contains Operations and Definitions . Each operation maps to a specific REST API endpoint and the definitions represent the schemas to describe the JSON request or response payload. Framework You can use PHP attributes to describe the structure of your endpoints. You can then use the attribute parser ( PSX\\Api\\Parser\\Attribute ) to automatically generate a specification for your controller. A controller class could then look like: This would be enough for the API component to generate either an OpenAPI specification or a client SDK. Note this library only needs the meta information, if you can get those meta information at your framework in another way you can also implement a custom ParserInterface . Standalone Beside the framework integration you can use this component also to simply parse existing TypeAPI specification and generate specific output. The following is a simple example how to use the PHP API and how to generate code.","default_branch":null,"files":null,"tree":[],"storefront":"/r/apioo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apioo/psx-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}