Please enable JavaScript.
Coggle requires JavaScript to display documents.
APIs - Coggle Diagram
APIs
REST
HTTP Status Code
200 (OK)
201 (CREATED)
204 (NO CONTENT)
400 (BAD REQUEST)
403 (FORBIDDEN)
404 (NOT FOUND)
500 (INTERNAL SERVER ERROR)
Architecture
Code On Demand
Cache
Layered system
Interface Uniform
Stateless
Client-Server
HTTP Verbs
GET — retrieve a specific resource (by id) or a collection of resources
POST — create a new resource
PUT — update a specific resource (by id)
DELETE — remove a specific resource by id
What is an API ?
APIs are mechanisms that enable two software components to communicate with each other using a set of definitions and protocols.
How do APIs work?
Clint sent a request and server send a response
Here are four different ways that APIs
RPC APIs
Websocket APIs
Modern Web API use JSON objects
SOAP APIs
Use XML and less flexible API that was more popular in the past.
REST APIs
These are the most popular and flexible APIs found on the web today
GraphQL