What does Apache Sling mean “more REST” than Spring -mvc?

Sometimes dimly I hear that

Apache Sling is more REST than Spring -mvc

from my colleagues.

I have no way to find out about this. I have enough experience with Spring -mvc and am new to Apache Sling.

Can someone explain the above quote?

PS

I want to see a list of non-REST functions for these products.

for example: they Spring-mvcallow you to use session attributes, and this contradicts the REST principle - to be stateless.

+4
source share
3 answers

I agree with others that it is difficult to measure the RESTfulness of a framework; -)

Spring MVC , .

Apache Sling RESTful - , , , URL- 1:1 ..

, , , RESTful, URL-, HTTP-, HTTP-, ..

-RESTful Sling, , Sling .

, Sling RESTful. RESTful , . Sling RESTful, .

+3

Apache Sling , , URL . Spring - - .

+1

, , RESTful, . , , , . , RESTful - , , . RESTful , REST. , RESTful , .

, REST, , , , :

  • .
  • .
  • (HATEOAS).
  • .
  • Respect for client-server architecture.

Remember that REST is not an adequate solution to most of the problems that people face. What most people call REST is simply any HTTP API that is not SOAP, and your colleagues are probably just trying to turn to REST as a power to give weight to their personal preferences.

0
source

Source: https://habr.com/ru/post/1533779/


All Articles