• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does state transfer in REST means ?

 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that different representations of a resource can be sent from the server to client. But what does state transfer means. I googled it but not able to understand what it actually means and where is that state maintained. Shouldn't it be just RET , representation transfer
 
Subho Pramanik
Greenhorn
Posts: 14
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
State means at any particular time the values that an object hold. You can think it like an instance/object of a class holding some values at a particular time. So that is the state of that object. State transfer means transferring these values to a particular component.

REST is stateless because each request is self explanatory i.e. each request contains all the information that is needed by the requested resource and it does not depend on any previous state. Below link might help you on this...

https://looselyconnected.wordpress.com/2011/02/07/rest-what-is-state-anyway/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic