REST API

REST API stands for Representational State Transfer Application Programming Interface. It is a software architecture for web services. Web services that conform to the REST architecture termed as RESTful Web Services (RWS).

It looks like an HTTP URL, but it has a different purpose, based on each method.

Example

https://api.example.com/v1/items
Method Description
GET Get all the items.
POST Create a new item.
https://api.example.com/v1/items/1
Method Description
GET Get the item with ID 1.
PUT Replace all information of item with ID 1.
PATCH Update some information of item with ID 1.
DELETE Delete the item with ID 1.