REST 101


REpresentational State Transfer

Shaikhul Islam Chowdhury

hypermedia vs multimedia

  • hypertext is a text displayed on computer screen with hyperlinks which user can immediately access
  • hypermedia 
    • extension of hypertext
    • includes graphics, audio, video, plain texts and hyperlinks
    • ex. WWW
  • multimedia
    • include non interactive linear presentations as well as hypermedia
    • ex. cinema 

REST Constraints

  • client-server model
  • stateless
  • cacheable
  • layered system
  • uniform interface

REST principles

  • Identification of resources
    • resources are separated from presentations that sent to client
  • Manipulation of resources
    • clients can manipulate resources with the representations 
  • Self descriptive messages
    • each message include enough info to describe about how to process the message
  • HATEOAS
    • Hypermedia as the engine of application state

RESTful API

  • base URI ex. example.com/resources/
  • media type ex. JSON
  • HTTP Verbs
  • hypertext links to reference
    • state
    • related resources 

Copy of REST 101

By Eder Rafo Jose Pariona Espiñal