idrinth / phalcon-routes2openapi
Generates an JSON represantation of the routes registered via phalcon in an OpenAPI-compatible way.
2.0.2
2020-08-18 12:38 UTC
Requires
- php: ^7.2
- ext-json: *
- ext-phalcon: ^4
- ocramius/package-versions: ^1 <1.10
- phpdocumentor/reflection-docblock: ^4.3.0
Requires (Dev)
- dg/bypass-finals: ^1.1
- phalcon/ide-stubs: ^3.2
- phpunit/phpunit: ^8
README
This library generates a representation of the routes in your project ready to be used with any OpenApi-compatible service(swagger for example).
Additional Annotations
You can define returns via @return-{status code} {mime-type} {schema}
with all but the status code being optional. For example:
* @return-200 application/json {"type":"object"}