Api Guide
Api Guide
pieces of software.
server.
How an API works? 02
requesting application.
through an API.
computer or application.
REST API Architecture 01
REST stands for
called RESTful.
Create POST
Read GET
Delete DELETE
CRUD 02
GET
The GET method is used to retrieve specific
resource. Requests using GET should only
retrieve data and should have no other
HEAD
Same as GET, but doesn’t have a message-
body in the response. The HEAD method is
useful in recovering meta-data that is
written according to the headers, without
transferring the entire content.
POST
A POST request is utilized to send data to a
server to create a resource, for example,
customer information, file upload, etc.
usually using HTML Forms.
HTTP Verbs 03
PUT
PUT is similar to POST as it is used to send
data to the server to create or update a
resource. The difference between it
replaces all current representations of the
target resource with the uploaded content.
DELETE
As it sounds, the DELETE request method is
used to delete resources indicated by a
specific URI. Making a DELETE request will
remove the targeted resource.
HTTP Verbs 04
CONNECT
CONNECT request establishes a tunnel to
the server identified by a specific URI. A
good example is SSL tunneling.
OPTIONS
The OPTIONS method requests permitted
communication options for a given URL or
server. A client can specify a URL with this
method, or an asterisk (*) to refer to the
entire server.
HTTP Verbs 05
TRACE
The TRACE method performs a message
loop-back test along the path to the target
resource, to provide a useful debugging
mechanism.
PATCH
The PATCH method is used for making
partial changes to an existing resource.
PUT vs PATCH
PUT method uses the request URI to supply
a modified version of the requested
resource which replaces the original
version of the resource, whereas the PATCH
method supplies a set of instructions to
modify the resource.
HTTP Status Codes 01
Status codes are issued by a server in
response to a client’s request made to
the server.
The first digit of the status code specifies
one of five standard classes of responses.
Standard Classes
1xx Informational responses
100 Continue
102 Processing
200 OK
201 Created
202 Accepted
204 No Content
HTTP Status Codes 04
3xx - Redirection responses
Many of these 3xx status codes are used in
URL redirection or it indicates the client
must take additional action to complete
the request.
302 Found
401 Unauthorized
403 Forbidden
rapidapi.com
Movie Database
API-NBA
Useful Free APIs on
rapidapi.com
Coinranking video
Flight Data
COVID-19
Currency Exchange
jsmasterypro javascriptmastery