REST vs. CRUD

Steven Curtis
4 min readApr 22, 2020

With diagrams: Commands, architecture and networking.

Photo by Toa Heftiba on Unsplash

Prerequisites:

  • None

Terminology

CRUD: The four basic functions of persistent storage; create, read, update, and delete

REST (REpresentational State Transfer): architectural style for providing standards between computer systems

REST

REST is a defining set of principles for developing an API. Uses HTTP protocols like GET, PUT, POST and DELETE to link resources to actions within a client-server relationship. The principles of RESTful architectures serve to create an application as a lighter weight alternative to SOAP. APIs may be web-based or designed for specific platforms such as Android or iOS, and a REST API makes it easy to implement other interfaces or applications over time which can turn an initial project from a single application into a platform.

The diagram:

The client may be a web browser requesting weather information in Washington i.e “washington” and receives a JSON string of [“16”]. REST API’s often use result codes (200 = OK; for example)

--

--