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

> You take the same data and either run it through a Json serializer or a view renderer.

My experience might be different than yours, but very often my html views quickly end up needed more than 1 resource to render and now I need to fetch data just for the html templates. The same data set isn't needed when returning json or xml and the API end points exposed for data consumption are often quite different. That said, in some cases, I agree that your approach would work.



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

Search: