REST API Fundamentals
REST API Fundamentals
@tauseeffayyaz
in their Careers!
@sefism
FUNDAMENTALS
A Beginner’s Guide
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
API acts as an
interface between different
applications.
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
GET / POST /
PUT / DELETE
Diagram
REST API Example
JSON / XML
Request Anatomy
REST API Request
URL
Uniform Resource It is the address to identify a
Locator
resource and specify how to
access it
Example: http://sefism.vercel.app
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
Request Anatomy
Every URL is a URI, but not
every URI is also a URL
REST API Request
Example: http://sefism.vercel.app/emails?
community=slack
URI highlighted
in white
Request Example
{
“email”:”[email protected]
”
“community”:”sefism”
“isJoined”:”true”
}
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
Request Parameters
Example: http://sefism.vercel.app/emails?community=slack
Example: http://sefism.vercel.app/helpful-resources/beginner/interviewtips
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
community=slack is a query
Query Parameters paramter (variable) which retrieves
emails for slack community
Request Parameters
Type
Example: http://sefism.vercel.app/emails?community=slack
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
Example: http://sefism.vercel.app/helpful-resources/beginner/interviewtips
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
Request Header
GET
POST
Retrieve information about
an API resource. Create an API resource.
PUT
DELETE
1XX : Information
2XX : Success
3XX : Redirection
4XX : Client Error
5XX : Server Error
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
Advantages of RESTful
APIs
Simplicity and
Clarity
Advantages of RESTful
APIs
Flexibility and
Scalability
Advantages of RESTful
APIs
Interoperability and
Openness
Advantages of RESTful
APIs
Maintainability and
Reliability
API Architectures
High-performance remote
procedure calls optimized for gRPC
microservices communication.
Continuous bi-directional
Web Sockets communication between client
and server.
Helping Professionals Excel Tauseef Fayyaz
@tauseeffayyaz
in their Careers!
@sefism
THANK
Join our slack
community for more
helpful resources:
sefism.slack.com
YOU