+1 RT @mikekelly85: Hypermedia APIs on Rails: why @dhh should “give a fk” blog.stateless.co/post/38378…
1
1
5
@mikekelly85 @stilkov I'm not a big fan of model serialization for public APIs. The hand-crafted ones in jbuilder make this super easy.
4
@dhh @mikekelly85 But *if* some out-of-the-box serialization is provided, it's better with than without links. Creates awareness
1
@stilkov @mikekelly85 There is no out-of-the-box serialization that's intended for end-user consumption, though.
1
@dhh @mikekelly85 So what you're saying is that render :json => @obj does not include links because it's not intended for public APIs?
1
@stilkov @mikekelly85 @obj I'm saying that's generally a bad idea, yes. We should take out that automatic #to_json call.
1
@dhh @mikekelly85 That seems reasonable, too (better than including a default representation without links)
Dec 20, 2012 · 1:56 PM UTC

