-
-
Notifications
You must be signed in to change notification settings - Fork 933
Closed
Description
API Platform version(s) affected: 2.6.0
Description
since v2.6.0 my parameters do not appear in the interface
How to reproduce
If i declare an apiResource in my entity like that:
@ApiResource(
-
normalizationContext={"groups"={"get"}},
-
collectionOperations={
-
"senders"={
-
"method"="GET",
-
"path"="/senders/{type}/{media}",
-
"controller"=GetSenders::class,
-
"pagination_enabled"=false,
-
"openapi_context"={
-
"summary"="Get senders by type and media",
-
"parameters"={
-
{
-
"description"="Type of sender",
-
"name"="type",
-
"in"="path",
-
"type"="string",
-
"required"=true,
-
"default"="BOTH"
-
},
-
{
-
"description"="Type of medium",
-
"name"="media",
-
"in"="path",
-
"type"="string",
-
"required"=true,
-
"default"="EMAIL"
-
}
-
}
-
}
-
}
-
},
-
itemOperations={"get"}
the 2 parameters appear if I use v2.5.9 but disappear in 2.6.x
Is there something i have to change to make it work?