Wednesday, January 18th, 2017
A Resource-Oriented Architecture (ROA) is a software architecture based on REST web services, using resources addressable by its URIs:
A Resource is anything that’s important enough to be referenced as a thing in itself. Something that can be stored on a computer and represented as a stream of bits: a document, a row in a database, or the result of running an algorithm.
For instance, the data of the book “Software in 30 days” stored on a computer, is a resource.
The data of the book "Software in 30 days".
URI: Uniform Resource Identifier. The URI is a string of characters used to identify a resource. It is the name and address of a resource. It should be descriptive, should have a structure, and should vary in predictable ways.
A URI designates exactly one resource:
A resource may have one URI or many:
When different URIs designate the same resource, one of them is named the canonical URI for that resource, and after a request for it is received, the server sends a 200 (“OK”) code in the response. With the other ones, the server sends a 303 (“See Also”) along with the canonical URL.
These Notes have been taken from:
- The book Restful Web Services, by Leonard Richardson & Sam Ruby.