News for hackers. Stuff that matters.
Re:Internet-Draft: A Convention for HTTP Access to JSON Reso... by ryanbrunner on Sunday February 05, 2012 @04:22PM (#3555271)
I like the idea of having a standardized way of dealing with actions (I run into this quite often when dealing with resources that are state machines), but I'm flabbergasted as to why something like a 'sum' action must be sent with a POST verb.

POST is supposed to be "used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.", which is nonsensical for querying information like sums from collections, and furthermore is supposed to be non-idempotent, which isn't true for a sum operation.

Ideally "action" would be seperated into two different methods, one for manipulating resources (like state machine transitions, or other processing), and one (utilizing GET) for aggregations and computations on collections or resources.

Re:Internet-Draft: A Convention for HTTP Access to JSON Reso... by yesbabyyes on Sunday February 05, 2012 @07:38PM (#3555765)
Ideally "action" would be seperated into two different methods, one for manipulating resources (like state machine transitions, or other processing), and one (utilizing GET) for aggregations and computations on collections or resources.

They have done that. See 5.6. Query. Just a mistake by the parent.

Re:Internet-Draft: A Convention for HTTP Access to JSON Reso... by jkbr on Sunday February 05, 2012 @08:30PM (#3555854)
You are right. The aggregation wasn't a good example of an "action".