What does Representational State mean in REST?

前端 未结 8 749
执笔经年
执笔经年 2021-01-30 02:58

I have been reading all over the net to get the exact meaning of two words:

REPRESENTATIONAL STATE

I have a doubt. I am misunderstanding these terms. i want to

8条回答
  •  野的像风
    2021-01-30 03:36

    Every object has some state(data) and behaviour(methods).In order to transfer state of object on server at particular instance of time to client, some sort of representation is needed like JSON or xml or any other format.

    So REST is about creating representation of object's current state and transferring that representation over network.

提交回复
热议问题