Live data from Hacker News

REST API Alternatives

blog.programmableweb.com

81–82 of 82 posts

Re: REST API Alternatives

#81
post #51
post #45

Earlier quoted context omitted.

You probably never heard about these, but these are the best for Binary protocols. If you know something else, or better please post. BEEP: http://www.aspl.es/vortex/ BSON: http://bsonspec.org/ (Binary Json)

CBOR [0] is a proposed standard that seems much more efficient than BSON - check out the appendix [1]. [0] http://tools.ietf.org/html/rfc7049 [1] http://tools.ietf.org/html/rfc7049#appendix-E.6

checking out the rfc. cool, thanks!

Re: REST API Alternatives

#82

Earlier quoted context omitted.

Yeah. I've found a weird dichotomy in the general push to use "REST" for web APIs, but then certain aspects (true statelessness, for instance) are met with blank stares.

True statelessness? Even if you disregard POST as "not true REST", the PUT and DELETE methods involve changing state. REST is an acronym for "representational STATE transfer", and is all about dealing with state in an simple and transparent way, not about avoiding it.

The server can have state, but there should be no communication about the client state. This is most tricky regarding logged-in/out session state usually communicated with cookies. http://ruben.verborgh.org/blog/2012/08/24/rest-wheres-my-sta...

Also, I have never read anything implying POST requests are incompatible with REST.

Post reply on HN