REST API is short for Representational State Transfer Application Program Interface and can be divided into two sub-categories as below.

Stateless API

API does not store client state session in the server; In Stateless, every call goes through the whole cycle and should result in the same response.

Example

http://example.com/catalog?item=1729

Stateful API

API holds the client session in the server; meaning that previous information exchanged is used in order to respond. Each client gets its own response customized based on their previous inputs.

Example

http://netflix.com/Favourites

What is Swagger?