Re:Alpine.js: A minimal framework for composing JavaScript b...
by mands on Monday February 10, 2020 @12:53PM
(#22291438)
We're using intercooler on our current site and find it easier to keep the API side of the application separate from the HTML-generating MPA side.
Internally they both call out to common code, but we like to keep the API-side RESTful and aren't so concerned about REST for the HTML side, both the full page views and intercooler-specific partials.
Re:Alpine.js: A minimal framework for composing JavaScript b...
by vearwhershuh on Monday February 10, 2020 @01:03PM
(#22291518)
Your general data api and your application api should be separated, since they are different concerns with different requirements, as you are discovering.
Intercooler is better mentally modeled going from a traditional web application -> more interactivity rather than going from a JSON data API SPA -> an intercooler application.
You end up with a bunch of made-for-Intercooler endpoints instead of thoughtful, general, data API endpoints.