4 ms·
I'm a bit tired of these sinatra like web frameworks these days. Repetitive url patterns are not that elegant. Why not simply building the API around the fundam
by cryptos 11y ago
I'm a bit tired of these sinatra like web frameworks these days. Repetitive url patterns are not that elegant. Why not simply building the API around the fundamental REST concept, the resource? And what about proper content negotiation?
JAX-RS has a nice API without much boilerplate and it is more powerful than most "micro web frameworks".
- xaduha 11y agoJAX-RS is just a specification, but implementations of it are not that fast, compared to other Java frameworks.
- jerven 11y agoThen you will like JSR-371. This is extending JAX-RS to deal nicely with routing to HTML templates. https://jcp.org/en/jsr/detail?id=371 https://jcp.org/en/jsr/detail?id=371
- pron 11y agoWhich is why my favorite "micro"-"framework" -- is Dropwizard, which is fully JAX-RS.
- shadowfox 11y ago> JAX-RS has a nice API without much boilerplate and it is more powerful than most "micro web frameworks". This is true. But it is usually much more intimidating for people starting out though. What the micro-frameworks offer is a quick turnaround time.
- true_religion 11y agoI suppose it's because if your legacy products are already built with what's essentially a HTTP-RPC protocol, you're not going to want to build a REST-inspired framework. I think REST is like the 3rd normal form of databases. In theory it's great, but in practice people only try to get close enough to the abstraction.