How an API works: a menu, a request, a known answer
How an API works: a menu, a request, a known answer
An API is a menu your app orders from.
It picks one request, fills in the blanks (here: latitude, longitude, temperature), and gets data back in the same shape every time. It never sees the code inside.
This one is a real call: London, 19.0 °C, 3 October at 13:00.
#api #webdevelopment #coding #programming #computerscience #technology