API fundamentals
What is the difference between HTTP and REST API?
HTTP is the set of rules used to send requests and replies on the web. REST is a set of design principles for organizing how applications communicate. A REST API on the web normally uses HTTP, so you often see the two names together.
Imagine a travel app asking an external weather service for a forecast. A simplified request might be GET https://weatherapiexample.com/weather?city=Paris, using a fictional URL for this example. GET means “retrieve information,” and city=Paris specifies the place. HTTP defines what GET means and how the reply is sent. REST guides the API’s overall design.
Using HTTP alone does not make an API RESTful, which means following REST principles. REST includes other rules too, such as each request carrying the information needed to understand it. For now, start by learning to send one request and read its reply.