Imagine you're trying to book a flight online.
When you search for flights and enter your preferences, the website sends a request to the airline's computer system to find available flights that match your criteria.
The airline's system then sends a response back to the website with the available flights, and you can choose one to book.
This interaction between the website and the airline's system is made possible through a REST API.