What is an API?
Client Server
Request
API
Response
An API is code which allows two programs
to communicate.
A developer can write a program which
can communicate with an API.
A RESTful API is an API that uses HTTP
API requests to GET, PUT, POST and DELETE
data.
REST stands for REpresentational State
Transfer.
REST is an architectural style for
developing web services.
REpresentational State Transfer
Client Server Database
Request
API
Representation
of
resource
HTTP GET
Used to retrieve resource representation i.e
getting data
HTTP POST
Types Of API Used to create new resources i.e Posting
Requests data.
HTTP PUT
Used to updating existing resources. i.e
Editing data.
HTTP DELETE
Used to delete resources. i.e Deleting data.
Used to create new resources i.e Posting
site-address/movies
How an API
site-address/movies/spiderman
request looks
like
PITCH DECK V 1.0
{
"name": "spiderman",
"duration": 1.6,
How API "releaseDate": "2014-06-
25T00:00:00.000Z",
response }
"rating": 4.5
looks like
PITCH DECK V 1.0
The above is a JSON format.