Instagram
youtube
Facebook
Twitter

What is an API?

In this tutorial we'll learn about the concepts of APIs and their significance in web development.

We will specifically focus on understanding APIs in the context of Django and Django REST Framework.

What is an API?

  • An API, (Application Programming Interface) is a set of rules and protocols that allow different software/web applications to communicate with each other.

  • It acts as an intermediary layer between different systems that allows two or more applications to exchange data and talk to each other.

  • APIs define the methods, data formats, and conventions for interacting with a particular software component or service.

 

Types of APIs

  • Web APIs: The web APIs  are exposed all over the internet. They are commonly used for web development and integration with third-party services.

  • SOAP APIs: Simple Object Access Protocol (SOAP) is a protocol for exchanging structured information using XML. SOAP APIs are widely used in enterprise systems.

  • RESTful APIs: Representational State Transfer (REST) is an architectural style that uses the HTTP protocol and principles to design scalable and stateless APIs. RESTful APIs have gained significant popularity due to their simplicity and flexibility.

 

Types of APIs in terms of release policies

  • Private APIs: This type of APIs can only be used within the orginization.

  • Partner APIs: This type of APIs can only be used between business partners.

  • Public APIs: This type of APIs can only be used among third-party developers also.