not think in controllers, id’s, actions, models, views, plugins, helpers etc... ‣ In fact, do not think about implementation AT ALL!! woensdag 25 april 12
constraints that attempts to minimize latency and network communication while at the same time maximizing the independence and scalability of component implementations. This is achieved by placing constraints on connector semantics where other styles have focused on component semantics. REST enables the caching and reuse of interactions, dynamic substitutability of components, and processing of actions by intermediaries, thereby meeting the needs of an Internet-scale distributed hypermedia system. Roy Fielding said: woensdag 25 april 12
have an hierarchy ‣ Methods perform operations on resources ‣ Operation must be implicit ‣ Hypermedia format to represent data ‣ Link relations to navigate ‣ THE PRINCIPLES OF REST woensdag 25 april 12
want the first comment of the fourth photo for the fifth article We want all comments of the fourth photo for the fifth article We want all articles Cacheable! Scalable! Readable! ‣ Readable and maintainable! woensdag 25 april 12
Accept: application/vnd.enrise.nl+xml ; version = 1.0 Content-type: text/csv;charset=UTF-8 John Doe, 1 Main Street, Seattle, WA Jane Doe, 100 North Street, Los Angeles, CA HTTP/1.1 303 See Other Location: /user/jthijssen/addressbook ‣ Controller resources & non-crud woensdag 25 april 12
‣ 403 Forbidden ‣ 404 Not found ‣ IMPORTANT 4xx CODES Resource was not found Not authorized to operate Not authorized to operate Incorrect payload woensdag 25 april 12
Accept: application/vnd.enrise.nl+xml ; version = 1.0 Content-type: text/csv;charset=UTF-8 John Doe, 1 Main Street, Seattle, WA Jane Doe, 100 North Street, Los Angeles, CA HTTP/1.1 303 See Other Location: /user/jthijssen/addressbook ‣ Controller resources woensdag 25 april 12