Getting RESTful
Definition of REST
No wrong answer. The definition is like 50 pages...
It's not a real standard, or http protocol. It's just a way they came up with.
Representation state transfer.
- It should be stateless. (Should not pass around information about previous requests, for example) Each request is "fresh"
- use HTTP verbs (GET, POST)
- directory-like URL pattern to a resource
- transfer JSON or XML (consume or emit)