Rest API

What is Rest API

REST is an acronym for the Representational State Transfer. REST is not HTTP(protocol), it is an architectural style used in creating web services.

  • It uses Uniform Resource Identifiers (URI).
  • Request Stateless Operations

Rest API History

Created in 2000 by Roy fielding is his ever-famous dissertation. Founded on 6 guiding Principals.

  • Uniform Interface
  • Client-Server
  • Stateless
  • Cacheable
  • Layered System
  • Code on Demand

Uniform Interface

  • Visability of Interactions
  • Seperation of Concerns
  • Resource Identification
  • Representation Manipulation

Client-Server

  • Seperation of Concerns
  • portability Improvement
  • Interface/Contract Management

Stateless

  • Statelessness is the process in which each request contains the information to complete the request
  • Server can't use previously stored information from the server.
  • Client application manages the state.

Cacheable

  • Cacheable
  • Non-Cacheable

Layered System

  • Hierarchal Layers
  • Component Behavior
  • Seperation of Concerns

Code on Demand

  • *Optional
  • Applets & Scripts
  • Download Scripts Executed on the Client

Works Cited

Young, D., Packer, J., Choudhary, C., Luis, Tiamo, Alexander, Anto, εΊ”ηͺη‘œ, Sunny, Gaurav, Talada, R., Metkar, P., Iris, & Masne, S.
(2022, April 7). What is rest. REST API Tutorial. https://restfulapi.net/
Kandwal, V. (2021, April 28). Rest api tutorial – rest client, rest service, and API calls
explained with code examples. freeCodeCamp.org. https://www.freecodecamp.org/news/rest-api-tutorial-rest-client-rest-service-and-api- calls-explained-with-code-examples/