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

This package is auto-updated.

Last update: 2024-12-18 21:59:05 UTC


README

Build Status Codacy Badge Codacy Badge

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"}