Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



$ curl https://api.github.com

We're experimenting with more :)


<3 <3 <3.

I really need to buy you a beer sometime.


That's cool :) I agree with steveklabnik, I want to see what Balanced can do to learn from Github's experiments in hypermedia APIs


So sexy.


What are the advantages/disadvantages of serializing links in the body JSON (i.e. HAL) vs. using the Link header?


This is a good question, and the answer is philosophical purity and pragmatism. Philosophically, some people believe that this information should be encapsulated in the HTTP response body, while others believe that they should be able to leverage all of the parts of the HTTP spec including the response headers. Pragmatically, certain environments make it harder or easier to access certain parts of request and response objects, but the lowest common denominator is the body content.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: