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
Post a Comment