Route to validate
fabioginzel opened this issue · 3 comments
Creating a route to only validate.
I need far more information than this. Please update the issue to provide a detailed explanation of your question and/our feature request. Are you wanting to know how to validate user supplied route segments? Or do you want to know how to create a service for the purpose of simply validating a set of data? Or something else?
For each resource, I need a route to validate the data before submitting.
example:
/ car / isvalid
To be used in the frontend application before the user clicks the submit button
We do not have plans to do that at this time; that sort of logic is highly application-specific: do you key based on the URI, or the service name? how do you indicate which HTTP method you want to validate against (as validation can be HTTP method-specific)? how should validation errors be reported (validation failure here is an expected response, so an API Problem and HTTP error status may not be appropriate)? etc.
This sort of logic can and should be written in userland for your specific purposes.