[Openid-specs-ab] FYI: Being RESTful with JSON API -- HAL+JSON

Nat Sakimura sakimura at gmail.com
Mon Aug 27 12:57:37 UTC 2012


I was not aware of HAL. http://tools.ietf.org/html/draft-kelly-json-hal-03
As you know, since JSON has no defined link relation syntax, by
itself, a JSON API is not quite RESTful.
See http://norestforjson.blogspot.jp/2012/08/json-is-not-restful.html

There are people who is working to define such. One example is HAL.
- http://tools.ietf.org/html/draft-kelly-json-hal-03

Interestingly, our Userinfo response is almost like HAL: if we replace
_claim_sources to _link and
mandate there be "self" in it, and response type was changed to
application/hal+json instead of application/json, then it is HAL.

Interesting?

-- 
Nat Sakimura (=nat)
Chairman, OpenID Foundation
http://nat.sakimura.org/
@_nat_en


More information about the Openid-specs-ab mailing list