3 ms·
Absolutely. Your application API and your data API have different needs and requirements: You application API is churny, specific and tuned for certain screen
by recursivedoubts 5y ago
Absolutely. Your application API and your data API have different needs and requirements:
You application API is churny, specific and tuned for certain screens and user interfaces.
Your general data API is, well, general, rate limited, concerned with limiting the ability of that expressive power to damage your system, etc.
https://intercoolerjs.org/2016/01/18/rescuing-rest.html https://intercoolerjs.org/2016/01/18/rescuing-rest.html
One you get over the hump of splitting your data and app APIs, the next step is to realize that your application API can be a hypermedia API rather than a dumb JSON API, and you are off to the races:
https://htmx.org/essays/hypermedia-apis-vs-data-apis/ https://htmx.org/essays/hypermedia-apis-vs-data-apis/