What is resource representation?

What is resource representation?

A representation of a resource is a document of a certain media type, such as HTML or JSON. The FotoWeb REST API defines multiple JSON-based media types. Each resource can have one or more representations and at most one representation of each media type.

What is resource in HTTP?

In the scope of HTTP, URIs are “simply formatted strings which identify – via name, location, or any other characteristic – a resource.” A resource is the thing living on the other side of a URI and a URI only points to one resource. After all, resources are just abstract concepts pointed at by URIs.

Which is an Uri and which is a resource representation?

URL is an URI which identifies a resource by location. Resource representation is a view of resource’s state. This view is encoded in one or more transferable formats, such as XHTML, Atom, XML, MP3 a) So I assume URI identifies a resource and not resource representation?

What’s the difference between resource and resource representation?

Resource representation is a view of resource’s state. This view is encoded in one or more transferable formats, such as XHTML, Atom, XML, MP3 a) So I assume URI identifies a resource and not resource representation?

How is a resource represented in a rest component?

Really a resource can be abstract concept that that is identifiable by a URI and can be represented in transmittable data. REST components perform actions on a resource by using a representation to capture the current or intended state of that resource and transferring that representation between components.

What do you need to know about URI syntax?

URI Syntax 1 scheme: Gives information about the protocol being used. 2 authority: Identifies the domains. 3 path: Shows the exact path to the resource. 4 query: Represents a request action. 5 fragment: Refers to a partial aspect of a resource. More