core icon indicating copy to clipboard operation
core copied to clipboard

Group filter on get item operations not exposed in OpenAPI Documentation in A.P. 3.2

Open SylvainNConnect opened this issue 2 years ago • 0 comments

With Api Platform 3.2.2 :

The Group Filter works for Get Collection and also for Get Item Operations.

These groups are only exposed in OpenAPI doc for Get Collection ; not for Get Item Collection. So they are not available in Swagger UI too.

The only worksaround is to rewrite manualy the groups[] parameter in the openapi attribute of each Get Item operations .This requires, among other things, duplicating the enumeration of available groups.

It would be great to be able to generate this documentation automaticaly for Get Item operations in future release.

SylvainNConnect avatar Nov 01 '23 09:11 SylvainNConnect