API
API
A | Application |
P | Programming |
I | Interface |
Allows other programs or application to use functionality that you expose:
- Functions
- Protocols
- Objects
Weather Data Example
Request:
Response:
API Use-Cases
- Frontend - Backend Communication
- Component Comunication
- e.g. One Service calls another service
- DaaS
Frontend-Backend
Using APIs, you can link any software parts, potentially using different technologies, as long as they support the same protocol.
Component Communication
Protocols
There are several common protocols used in APIs.
Attributes of protocols
Protocols …
- allow exchange of messages and information between 2 processes.
- Processes don’t need to be on the same physical machine. Can be distributed and communicate over network.
- are open to any technology or programming language.
- have a clear specification.