This may be more a question of "teach michael about REST" as I am rest-
cluefree (more attacking it from a user angle).
So in Inifinispan and ehcache servers, data is put in via a POST. With
Infinispan I thought I would be clever and use POST for creating new
items, and PUT for updating (POST would fail if it was on an existing
key) as I found that useful (but I am wierd).
However, as people have rightly pointed out (ref
https://jira.jboss.org/jira/browse/ISPN-304), POST is really for
creating subordinate resources of an existing resource, not specifying
the name of the resource.
It has been suggested if we want to allow client specified names we
use PUT instead.
..and if a POST is done to a resource, then the server should generate
a key for it, and return it (which is actually a useful thing if I
client just wants to stash things away).
Thoughts? precedents?