Introduction to APIs
Understand what APIs are and how they enable communication between applications. Explore REST API methods including Create, Read, Update, and Delete. Learn how to test APIs using tools like Postman, gain insight into API endpoints and URLs, and prepare to integrate APIs in Android MVVM architecture.
We'll cover the following...
What is an API?
An API (application programming interface) is a service that consists of protocols that enable communication between applications. In short, it acts as an intermediary between two applications, allowing them to communicate with each other. For example, we’ve all used applications that prompt us to register or log in using our Google or Facebook accounts. Typically, data is shared between these applications for authentication purposes before a user is granted access to an application. All this is made possible by an API.
REST API
The above is an example of how a REST API works. REST stands for Representational State Transfer. REST APIs use the HTTP protocol to transfer data from the server to the client. ...