REST

code 102 notes


REST

Who’s roy fielding?

  • wrote the first web servers
  • his name is on the specification for the protocol used to get pages from servers to browsers (HTTP)

Why don’t the techniques that we use today work well when we need to be able to talk to all of the machines in the world?

  • not designed for the purpose
  • primary concern was talking to a machine anywhere in the world
  • only needed to talk to a small group of machines when internet first started

What is the HTTP protocol that Fielding and his friends created?

  • describes thel ocatrion of something anywhere in the world from anywhere in the world
  • like gps coordinates for information
  • general purpose protocol for applying verbs to nouns

What does a GET do?

  • retrieves information or a resource

What does a POST do?

  • creates new resources

What does PUT do?

  • updates capabilities

What does PATCH do?

  • Submits a partial modification to a resource