core icon indicating copy to clipboard operation
core copied to clipboard

Group filter on item operations not exposed in OpenAPI

Open ypereirareis opened this issue 7 years ago • 5 comments

Hi,

Thanks for your amazing project ! :+1:

I recently used group filter to expose (or not) data when querying my api endpoints depending on the context. It's working perfectly well !!!

I wanted to filter what data I expose calling Item Operation but it's seems that it's not possible to do the same thing.

Is there a solution or workaround to give serialization groups as query params calling an Item operation ?

Thanks !!

ypereirareis avatar May 28 '19 16:05 ypereirareis

GroupFilter is already supposed to work for item operation It is even test here

antograssiot avatar May 28 '19 17:05 antograssiot

OK. I admit I didn't test it because nothing is generated for swagger ui and doc. Or maybe my yaml configuration is wrong.

I configured group filter the same way as for collection operation but nothing in the swagger doc.

Am I missing something?

Thx

ypereirareis avatar May 28 '19 17:05 ypereirareis

It works for itemOperations, but it doesn't seem to add swagger unfortunately.

jameslmoser avatar Jan 03 '20 18:01 jameslmoser

I confirm that :

  • groups are managed for item operation like collection operation fortunately
  • openapi doc display the group filter for collection operation but not for item operation unfortunately

So it would be a great enhancement to add it in openapi doc and in swaggerUI

SylvainNConnect avatar Sep 26 '23 10:09 SylvainNConnect

This bug is targeting 2.7, as API Platform 3.2 is out, version 2.7 has reached end of life. Therefore we'll close this issue.

We recommend to upgrade to API Platform 3.0, Les-Tilleuls.coop can offer paid support to help or even migrate your projects if they have tests.

We want to fund a Long Term Stable version of API Platform, if you or your organization would like to contribute to LTS support, please visit our Open Collective crowdfunding.

soyuka avatar Oct 17 '23 10:10 soyuka