3 ms·
> Two approaches which immediately spring to mind are passing desired items as query parameters or passing a template item as a query parameter or request body.
by tveita 3y ago
> Two approaches which immediately spring to mind are passing desired items as query parameters or passing a template item as a query parameter or request body.
I've implemented this twice, you quickly end up at something resembling GraphQL after a couple of rounds of "iOS needs the the profile picture in two different sizes, dependent on native screen size, and with version 2 of the blurhash"
Might as well use GraphQL and get schemas, libraries for clients and servers and IDE support out of the box at that point. It's no panacea - many of the backend libraries were somewhat low quality last time I checked - but I wouldn't hesitate to use it if I had a somewhat complex main product served by multiple frontends following different UI guidelines.