More and more convinced that SPAs and REST do not mix well together.
4
1
2
@szymonpobiega I disagree. Which is why we came up with ROCA (roca-style.org)
2
@stilkov Because they make hypermedia-based flows difficult by forcing static routing in client side code.
1
@szymonpobiega Make no mistake, I hate SPAs. But I believe they can be part of a RESTful app if they use a hypermedia format such as HAL.
2
@stilkov you can build SPAs to request hypermedia-rich responses, parse (optionally render) the data/controls. rinse/repeat. @szymonpobiega
1
1
@stilkov yeah, that reply should have been directed to @SzymonPobiega w/ you as cc. your roca-style.org covers this already, right?
1
@mamund @SzymonPobiega That’s what it’s supposed to do, yes.
2
@stilkov @mamund would love to see an SPA framework use link relations instead of URLs for routers.
1
Replying to @Stephen_Mizell
@stephen_mizell @mamund Why not skip the SPA idea altogether and use the most supported, documented, supported hypermedia format (HTML)?

Jun 4, 2014 · 9:02 PM UTC

2
1
Replying to @stilkov
@stilkov those two (SPA & HTML-based APIs) are not mutually exclusive. @stephen_mizell
1