RESTful application validation. Mix of frontend/backend validation. How?

Posted by Julian Davchev on Stack Overflow See other posts from Stack Overflow or by Julian Davchev
Published on 2010-03-17T08:22:31Z Indexed on 2010/03/17 8:31 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

Hi. Using RESTful for all backend persistance and operations. I just pass data from frontend (by frontend I don't mean clientside but the part that is making use of the REST) to rest and data gets back success or no with validation errors if any. Thing is I have stuff that should be validated on frontend too..like csrf tokens, captcha etc.

Only reasonable way is I mix validation coming from token/captcha checks and validation errors coming back from REST. Issue with this will be kinda automation as I wouldn't want form field names to map 1:1 with backend field names use by the REST documents.

Any pointers ideas are more than welcome.

© Stack Overflow or respective owner

Related posts about php5

Related posts about rest