Representational state transfer is architecture that can be used dealing with web services. Web API defines the methods on which developers can perform requests and receive responses. Generally we use it for the various uses when we need JSON based data from one application to another one.