https://restfulapi.net/

What is an API ?

API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you’re using an API.

When you use an application on your mobile phone, the application connects to the Internet and sends data to a server. The server then retrieves that data, interprets it, performs actions and sends it back to your phone. The application then interprets that data and presents you with the information you wanted in a readable way.

The API is the interface that can be asked by a service to get information from the database.

Your phone’s data is never fully exposed to the server, and likewise the server is never fully exposed to your phone. Instead, each communicates with small packets of data, sharing only that which is necessary.

Modern APIs adhere to standards (typically HTTP and REST), that are developer-friendly, easily accessible and understood broadly.

What is REST ?

A REST API (also known as RESTful API) is an application programming interface (API or web API) that conforms to the constraints of REST architectural style and allows for interaction with RESTful web services. REST stands for Representational State Transfer.

REST is a set of architectural constraints, not a protocol or a standard. In order for an API to be considered RESTful, it has to conform to these criteria: