···317317318318This seems useful but what if `/api/post/123` gets called from other screens that don't need this information--and you'd rather not slow them down? Maybe there could be an opt-in like `/api/post/123?expand=friendLikes`?
319319320320-Anyway, the point I'm trying to make here is not that it's *impossible* to design a good REST API. The vast majority of apps I've seen works this way so it's at the very least doable. But anyone who designed one and then worked on it for more than a few months knows the drill. *Evolving REST endpoints is a pain in the ass.*
320320+Anyway, the point I'm trying to make here is not that it's *impossible* to design a good REST API. The vast majority of apps I've seen work this way so it's at the very least doable. But anyone who designed one and then worked on it for more than a few months knows the drill. *Evolving REST endpoints is a pain in the ass.*
321321322322It usually goes like this:
323323···467467468468### Backend For Frontend
469469470470-Instead or *replacing* your existing REST API, you can add a new *layer* in front of it:
470470+Instead of *replacing* your existing REST API, you can add a new *layer* in front of it:
471471472472```js {1-2,4-6}
473473// You're adding new screen-specific endpoints...