You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sorry to ask my question here but i can't find a way to validate path parametes in api-platform.
Ex: for the following route: uriTemplate: '/companies/{ref}/employees', i wan't to make sure that {ref} is a valid string before hitting my database and returning http code 404.
The only solution i found on stackoverflow is this: https://stackoverflow.com/questions/73417064/api-platform-how-to-validate-parameter.
is there a way to do this in api-platform?
Thanks
The text was updated successfully, but these errors were encountered:
I am sorry to ask my question here but i can't find a way to validate path parametes in api-platform.
Ex: for the following route: uriTemplate: '/companies/{ref}/employees', i wan't to make sure that {ref} is a valid string before hitting my database and returning http code 404.
The only solution i found on stackoverflow is this: https://stackoverflow.com/questions/73417064/api-platform-how-to-validate-parameter.
is there a way to do this in api-platform?
Thanks
The text was updated successfully, but these errors were encountered: