In REST, every accessible piece of content on the server is labeled as a resource. A resource is an object with a type, associated data, a relationship with other resources on the server, and a list of methods that can be used with it. For example, a resource could be an HTML or text file, a data file, an image or video, or an executable code file.
A resource is identified with a uniform resource identifier, or URI. Clients access resources by including their URIs in HTTP requests.