Hacker News new | past | comments | ask | show | jobs | submit login

If, as another commenter mentioned, they want every request to update all the data in an app, this is quite an elegant pattern.

They don't have to modify any of their restful APIs to fetch or serialize more data than intended. Instead, the / endpoint might act as a wrapper, which does three things:

1. gets the entire app state

2. makes an internal API call of its own (proxies the one from the request)

3. merges the two results and returns them




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

Search: