3 ms·
> Pure server rendering will work for webapp. But if one day the client decides to have iOS/Android apps, the backend will need to be updated to provide Rest AP
by wtbob 11y ago
> Pure server rendering will work for webapp. But if one day the client decides to have iOS/Android apps, the backend will need to be updated to provide Rest APIs.
Why not make the REST API the rendered API? Just render state to HTML instead of to JSON or whatever.
> SPA with client side JS will not have this problem.
Won't it? If the SPA wasn't designed to be RESTful, trying to graft a REST interface onto the backend will be a horrid exercise (albeit an opportunity for Learning).