Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of path parameters #2677

Open
AliKHODR opened this issue Mar 28, 2024 · 1 comment
Open

Validation of path parameters #2677

AliKHODR opened this issue Mar 28, 2024 · 1 comment

Comments

@AliKHODR
Copy link

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

@EngMustafaSabah
Copy link

Hello, Fixed or still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants