A REST API is a way for two computer systems to talk to each other over the internet using standard HTTP. Think of it like ordering food at a restaurant β you (the client) make a request, the waiter (the API) passes it to the kitchen (the server), and you get back a response.
Client ββββ HTTP Request βββββΊ Server Client ββββ HTTP Response βββ Server
REST is built on six core constraints: statelessness, uniform interface, client-server separation, cacheability, layered system, and code on demand (optional).