open-api

Generate routes based on OpenAPI specifications and OpenAPI specifications from code.

BSD-3-CLAUSE License

Downloads
27.5K
Stars
0
Committers
2

Bot releases are hidden (Show)

open-api - Latest Release

Published by freost 9 months ago

2.2.0 (2023-11-23)

New

  • Added a controller that exposes three endpoints:
    • The OpenApi spec
    • A Redoc UI
    • A Swagger UI
  • Added a new route registrar class:
    • Registers routes from a cache file or at runtime from the OpenApi yaml spec.
    • Automatically registers /openapi/spec route that exposes the OpenApi spec.
    • Automatically registers /openapi/docs route that exposes a Swagger or Redoc UI.
open-api - 2.2.0

Published by freost 9 months ago

New

  • Added a new route registrar class:
    • Automatically registers /openapi/spec route that exposes the OpenApi spec.
    • Automatically registers /openapi/swagger route that exposes a Swagger UI instance.
open-api - 2.1.0

Published by freost 11 months ago

New

  • Now possible to specify the OpenApi version when generating the spec (3.0.0 or 3.1.0).

Fixed

  • The spec generator now supports the new Mako 10 directory structure as well as the legacy structure.
open-api - 2.0.0

Published by freost 11 months ago

  • Bumped requirements to Mako 10+ and PHP 8.1+
open-api - 1.2.4

Published by freost over 1 year ago

Fixed

  • A format is no longer required for integers.
open-api - 1.2.3

Published by freost over 1 year ago

Fixed

  • It is now possible to specify the output path of the generated route file.
open-api - 1.2.2

Published by freost over 1 year ago

Fixed

  • Parameters are now supported on both the path level and the operation level.
open-api - 1.2.1

Published by freost over 1 year ago

Fixed

  • The OpenApiTrait::getRouteName() method now supports invokable classes.
open-api - 1.2.0

Published by freost over 1 year ago

New

  • Added no-dot path parameter pattern.
  • Added possibility of defining custom regex based path parameter patterns.
open-api - 1.1.1

Published by freost over 1 year ago

Fixed

  • Only base route parameter patterns on path parameters.
open-api - 1.1.0

Published by freost over 1 year ago

New

  • Added a helper trait with the following methods:
    • OpenApiTrait::getRouteName()
  • Added experimental support for route parameter patterns based on parameter formats.

Fixed

  • Path parameters are parsed on path level instead of on request method level.
open-api - 1.0.0

Published by freost almost 2 years ago

  • Initial release
Package Rankings
Top 23.99% on Packagist.org
Badges
Extracted from project README
Static analysis