3 ms·
> So we have to make endpoints around every possible subset? No, you make endpoints for what clients actually need and use. qyv has it right https://news.ycom
by SideburnsOfDoom 11y ago
> So we have to make endpoints around every possible subset?
No, you make endpoints for what clients actually need and use.
qyv has it right https://news.ycombinator.com/item?id=10413950 https://news.ycombinator.com/item?id=10413950 - responses are UI models and when you "model the problem domain of the UI layer" you're asking "which chunks of data do clients really need?"
If you really have clients that ask for "every possible subset" then this is a requirement that is completely unrelated to REST. i.e. you can try at solving it with REST, or without REST. The article actually says that: "If you're requesting some subset of a complicated object graph, and constantly re-negotiating which particular subset, then you have a problem which has nothing to do with REST."