3 ms·
> And why would any site use the same URIs for API endpoints and frontend/view navigation places? Because they are the same underlying thing...
by tommorris 9y ago
> And why would any site use the same URIs for API endpoints and frontend/view navigation places?
Because they are the same underlying thing...
- pas 9y agoYes, of course, but not exactly. I mean, I know RoR likes magic very much, but it's not totally surprising to separate the backend from the frontend. And then use a SPA framework and use Ajax to communicate with the backend via a "REST API", because that simplifies the backend. A lot. You don't have to have views, templates, and so on implemented. So either the REST API is not a REST API, but a lot of interesting endpoints for the frontend dynamic JS magic, or the frontend is not a frontend, just a lot of glitter thrown up on a REST API. (I quickly tried to get something in JSON from a GitLab URL, but I just get a HTTP 406. :( )