CristalTeam / php-api-wrapper

:rainbow: Work with APIs like with Laravel Eloquent or Doctrine (no longer a dream)
MIT License
118 stars 32 forks source link

[ApiPlatform] Add filters to OpenAPI Documentation #4

Open TZK- opened 4 years ago

TZK- commented 4 years ago

In API Platform, we can use ApiFilters annotations to filters resources by passing GET parameters. By adding these annotations, it also add interesting documentation into the OpenAPI resource definition.

The php-api-wrapper provides such feature with allowedFilter attribute in the Cristal\ApiWrapper\Bridges\Symfony\Mapping annotation but it does not add extra data to the OpenAPI documentation.