jstacx12
jstacx12

Reputation: 23

REST will create a Representation of a resource or CREATE & TRANSFER a Representation of a Resource?

So, it will create a representation or it will create and transfer a representation and browser will render the representation?

Upvotes: 2

Views: 22

Answers (1)

VoiceOfUnreason
VoiceOfUnreason

Reputation: 57387

Useful definitions from Fielding's dissertation, which defined REST

The information included in the body of an HTTP message is a representation, and it is a copy.

When you point your browser at https://stackoverflow.com/ , the server sends to you an HTML representation of the https://stackoverflow.com/ resource, which the browser renders.

But the render part is not required. For some media types, the browser will save the representation on disk, rather than trying to "render" it.

And of course a user agent like curl has only trivial rendering capabilities.

Upvotes: 2

Related Questions