Don’t build a general purpose API to power your own front end (2021)
> Imagine if you could just send it the whole “page” worth of JSON. Make an endpoint for /page/a and render the whole JSON for /page/a there. Do this for every page. Don’t force your front-end developers to send a bunch of individual requests to render a complex page. Stop annoying them with contrived limitations. Align yourselves.<p>Why not just send HTML as a single response at this stage? Sometimes it feels like we are doing web development more complex than it needs to be.