api-platform / api-platform/core

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

Abierto
#5,940 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
2.6k
Forks
980
Merge medio
2 d 4 h
PR fusionados (30 d)
49

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.