Understanding APIs
Understanding APIs
by Group 2
What is an API?
Communication Service Contract
Bridge
Acts as a contract
APIs enable two software between applications,
components to defining how they
communicate using exchange requests and
defined protocols. responses.
Documentation
Contains information on how developers structure requests
and responses.
How APIs Work
REST APIs
Most popular web APIs today. Use HTTP methods like GET, PUT, DELETE to
access server data.
WebSocket APIs
Support two-way communication between client and server. More efficient
than REST for real-time data.
RPC APIs
Remote Procedure Calls execute functions on servers and return outputs to clients.
REST APIs Explained
Stateless HTTP-Based
Servers don't save client data Uses standard HTTP methods for
between requests. communication.
Expansion
Meet client needs across different platforms and devices.
Integration
Connect new applications with existing systems efficiently.
Easy Maintenance
Changes to internal systems don't impact external interfaces.
API Security Essentials
API Keys
Verify the program making the API call.
Authentication Tokens
Authorize users and verify access rights.
API Gateways
Manage authentication, statistics, and rate limiting.
Creating an API
Plan the API
Create specifications and blueprints for your API
design.
Build the API
Prototype with boilerplate code, then customize
to specifications.
Test the API
Perform security and functionality testing to
prevent bugs.
Document the API
Create comprehensive guides to improve usability.