REST  = REpresenatational State Transfer

 





What is REST API?



Client needs to talk to the server or the back-end to get or save the data. This communication happens using the HTTP protocol. Under server we expose a bunch of services that are accessible via the HTTP protocol. Then the client can directly call the services by sending HTTP requests.


To get the list of data we should send HTTP GET request to the address.

To update the data we should send an HTTP PUT to the endpoint.

To delete data we should send an HTTP DELETE request to the endpoint.

To create data we need to send an HTTP POST request to the endpoint.