api-platform / api-platform/core

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

オープン
#5,940 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.6k
フォーク
980
平均マージ
2日 4時間
マージ済み PR(30日)
49

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。