Overview of AJAX and REST [Dev Concepts #12]

Share on facebook
Share on twitter
Share on linkedin
Learn all about AJAX and REST in this Dev Concepts lesson!

In this episode, we explain the gist of AJAX and REST, which are widely-used technologies in Web programming. We demonstrate how to use the JavaScript Fetch API to call back-end services and interact with server-side components.

The lesson also includes a live code demonstration of AJAX and REST, so that you get a deeper understanding of their application.


What exactly is AJAX?

AJAX stands for “Asynchronous JavaScript and XML“.
This acronym doesn’t describe its nature well, but this is for historical reasons, from the time when XML was popular.
A better description for the AJAX technology is the following:
AJAX is a technology for asynchronous execution of HTTP requests from client-side JavaScript code. JavaScript front-end apps use AJAX calls to access the back-end services and APIs and consume data from the Web server over the HTTP protocol.
In most scenarios the AJAX technology is used to consume RESTful APIs from the back-end server.
RESTful APIs are Web services, invoked through the HTTP protocol.
A “Web service” is remote functionality, that can be invoked over Internet.
REST stands for “Representational State Transfer“. It is an architectural concept and industry standard about how to build Web services.
RESTful services typically implements the CRUD operations (create, read, update, delete) over а certain data collection.
The HTTP methods GET, POST, PUT, PATCH and DELETE are used to retrieve, create, replace, modify and delete data.

If you are new to programming, make sure to watch our Free Full Java Basics course! It will give you the necessary foundation to build upon and become a successful software engineer!

Lesson Topics

In this video we review the following topics:
  • AJAX and RESTful APIs
  • Live Demo – AJAX and REST

Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! 

We would love to hear from you, so leave a comment below saying what topics you would like to see next. 

Leave a Comment

Scroll to Top

Sign in

Don’t have an account? Register with us to join the community.