News for hackers. Stuff that matters.
Re:Generating JSON Directly from Postgres by yourenotsmart on Friday July 16, 2021 @04:59AM (#27854306)
> An alternative is to cut out the other middle man: JSON, ditch heavy front-end javascript and return HTML instead, going back to the hypermedia approach.

You are incorrectly assuming all JSON APIs are consumed by HTML sites on the same domain.

APIs are for machine consumption across the web.

Your solution of "just make static HTML" doesn't even begin to address the problem. Unless you're saying API consumers should go back to scraping HTML instead of having made for the purpose APIs.

There are no comments on this comment yet.