What is difference between Ajax and REST API?

srinivas
srinivas

Posted On: Dec 21, 2022

 

AJAX (Asynchronous JavaScript and XML) is a set of technologies, that are used for updating the data and web page without reloading the page. Using this, you can send data in the background, and request/receive data from a server after the page has loaded.

REST (REpresentational State Transfer) uses HTTP requests to transfer data between the client and the server. It defines a set of constraints for the successful creation of RESTful web services.

AJAX and REST are completely orthogonal. You can use REST for creating an AJAX call. REST is one way of implementing AJAX.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Rest API Interview Questions

    Explain What is REST?

    REST, expanded as Representational State Transfer, is an architectural style developed by Roy Fielding in 2000. REST presents a set of constraints to be used in the creation of web services. The servi...

    Rest API Interview Questions

    Enlist different types of HTTP requests supported by REST API?

    REST supports a group of HTTP methods to manipulate the request and response. They are, GET – It is used to read the representation of a resource. It usually returns the resource in XML or JSON...

    Rest API Interview Questions

    What is resource in REST API?

    In the REST architecture, every content is a resource. It can be a text file, HTML pages, images, videos, or business data. These resources are identified by the URI or global ID’s which can be ...