http - Which REST operation (GET, PUT, or POST) for validating information? -


my users enter few information fields in ios app. information must validated on server, has restful api. after validation ui of ios app changes indicate result.

neither get, put, or post seem appropriate, because i'm not getting resource, , neither resource created or updated.

what best fitting rest operation implement validation?

my users enter few information fields in ios app. information must validated on server, has restful api. after validation ui of ios app changes indicate result....i'm not getting resource, , neither resource created or updated.

since aren't saving (not modifying resource), i'd think technically more rpc restful me.

the following opinion, don't take gospel:

if information being submitted , you're saying yes or no, and you're not saving it, i'd post fine..

if information being saved / updated, choosing proper http method lot more relevant.

post = create / submit (in rpc context) put = update (or create if there nothing update) 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -