api-platform / api-platform/core

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

Aperta
#5,940 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
2.6k
Fork
980
Merge medio
2g 4h
PR unite (30g)
49

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.