Next 5 Minutes
1. What is API?
2. What is benefit of using API ?
What is an API
1. An API is an Application Programming Interface.
2. API provides the information, how to communicate with
different software component. Defining the
1. Operations ( What to Call ) . For Example, GET,
POST, DELETE, PUT, PATCH
2. Inputs ( What to send with a Call ) . Example, Id in
the URL or a complete json/xml body
3. Output ( What you get back from the call ) .
4. Object Structure ( Object Data Types ) . JSON/XML
data structure
3. API is a URL which is consumed by Machine ( System )
communicate between 2 or more bodies ( machines ).
Example ( Mobile Phone )
1. Touch
2. Feel
3. Find Menus
4. Intract
5. Etc.
Example Cont…
1. Some of URL may be public where as some of the URL are protected
by some authentication scheme.
2. facebook.com ( public API )
3. https://graph.facebook.com/v5.0/me ( protected API )