REST APIs with JSON
Learn how modern applications serving APIs communicate with the world and their relationship with JavaScript.
For many years, the primary goal of the PHP application was to generate HTML pages. Now it’s changing.
- First, single-page applications are becoming more common. In these applications, the server sends a single HTML file containing only a link to a JavaScript bundle that builds the whole document on the client-side.
- Second, monoliths are getting replaced with collections of microservices. Most PHP services are never meant to be called directly by the browser but instead, by other services.
In both cases, PHP applications need to provide a convenient API for other programs. And, that’s why the REST API is popular.
What is the REST API?
Representational state ...
Access this course and 1400+ top-rated courses and projects.