S4 Slides
S4 Slides
S4 Slides
Memi Lavi
www.memilavi.com
REST :
of a resource’s state
REST Request / Response
State:
- The current resource properties
- Result of an action on the resource
Request for resource’s state
Order no. 17
Client Server
Order no. 17 representation
Response with the resource’s state
representation
REST Request / Response
Client Server
Resource deleted
Response with the resource’s state
representation
REST Request / Response over HTTP
Client Server
Order no. 17 representation
Response with the resource’s state
representation
REST Request / Response over HTTP
Client Server
200 OK, JSON
Response with the resource’s state
representation
Structure of REST API Request
Headers
Structure of REST API Response
Status
Headers
Body
Response Types
• Usually JSON
• Rarely used