Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This describes a type of functional contract. Servers inform clients what can be done using through hypermedia and clients inform servers what they want to do using this through the same hypermedia. This provides the basis of statelessness with our RESTful APIs. That is, servers are not tracking the application state of each and every client. Servers don't care what the application state of each and every client. Rather, servers (i.e., our APIs) only care about what a client requests at the time it calls our API. Our APIs then package up the resource content (static and hypermedia) as appropriate at the time. Likewise, clients also should not care about the resource state of the server. They should only be concerned with the application state and any responses the server returns when a change in the resource state is made.

...