DEV Community

Njeri Muriithi
Njeri Muriithi

Posted on • Edited on

1

REST API

Introduction to API

API --> Application Programming Interface , is defined as a set of rules or protocols that are set to enable two software to communicate with each other.
There are several types of API’s example SOAP, XML-RPC or REST
This article will focus more on REST API.

Rest API stands for REpresentational State Transfer→ It is a set of functions (GET, POST,PUT or Delete) that enables clients to perform CRUD operations that include Create , Read, Update and Delete resources in the data server.

There are Six REST API design principles.

  • Uniform interface
  • Stateless
  • Client-server decoupling
  • Cacheable
  • Code on Demand
  • Layered System

Rest API HTTP Methods

  1. GET → Request Data from a server.The response contains all details requested.
  2. POST→Create new resources on the server.
  3. PUT→Update a Resource in the specified URL.
  4. DELETE→Delete a Resource in the Specified URL.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (2)

Collapse
 
njeri_muriithi profile image
Njeri Muriithi

Thank you for the reminder, I appreciate.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay