KARADAVI

What is an API?

APIs are the invisible glue of the Internet. Every app talks to dozens of APIs per minute. What they are and how they work.

Published Invalid Date min read
HTTP
Editorial overview and documentation for HTTP.Source: KARADAVI Knowledge Archive

The core concept

An API (Application Programming Interface) is a contract defining what requests a system accepts, what parameters they take, and what responses it returns — hiding internal implementation from callers.

REST

REST (Representational State Transfer) uses HTTP. Resources are identified by URLs. HTTP methods represent operations. Responses are typically JSON. Each request is self-contained (stateless).

GraphQL

GraphQL (Facebook, 2012; open-sourced 2015) lets clients specify exactly what data they need in one request. The client controls response shapes, eliminating over-fetching and under-fetching.

gRPC

gRPC (Google) is a high-performance binary protocol using Protocol Buffers for service-to-service communication in microservices where bandwidth and latency matter most.

Good API design

Good APIs are consistent, predictable, and version-stable. Clear naming, meaningful error codes, comprehensive documentation. API design is as much communication as technology.

Explore Further

Continue exploring the forest
Next trailHTTP

Every article leads somewhere. Follow this entity, or search the whole forest.