On Thu, Apr 16, 2009 at 3:05 PM, Richard Davies <richard.davies@elastichosts.com> wrote:
Agreed in principle, but there's an implementation issue that many common
HTTP libraries will only do POST/GET, not PUT/DELETE, so need url versions
of 'UD' anyway.
Perhaps the compromise position is to work both ways:
POST/GET/PUT/DELETE /<object> accepts all 4 CRUD operations
POST /<object>/set alternative form of 'U' (if cannot PUT)
POST /<object>/destroy alternative form of 'D' (if cannot DELETE)
POST /<object>/create alternative form of 'C' (for symmetry)
GET /<object>/info alternative form of 'R' (for symmetry)
> Non-CRUD operations such as start, stop, restart, clone, snapshot, etc.The actuator URLs for these can then fit in alongside the alternative
> can be exposed by "actuator" URLs, which fits nicely with HATEOAS.
actuator forms of the CRUD operations themselves.