Decorate parameter name for nested resource

Viewed 13

if I need to decorate the name of the parameter for a nested resource do I need to create a Custom filter or there is a simple way to do so?

#[ApiFilter(SearchFilter::class, properties: ['partnerRestrictionTag.value' => 'exact'])]

I would like to have this parameter as

api/partnerRestriction?restriction=test

and not

api/partnerRestriction?partnerRestrictionTag.value=test

0 Answers
Related