I want to use custom identifier in a custom action without using {id} like this .
@ApiResource(
itemOperations={
"FORGOT-PASSWORD"={
"method"="PUT",
"path"="/users/{forgotPasswordToken}/forgot-password",
"controller"="App\Controller\ForgotPasswordController",
"defaults"={"identifiedBy"="forgotPasswordToken"}
}
}
)
But i still have the same error with "Invalid identifier value or configuration" .
Any issue please ?