REST API vs Web API

REST API vs Web API

What is the difference between API and REST API?

Not all APIs are REST, but all REST services are APIs

So let's start a common difference between API and REST API.

  • API Stands for (Application Program Interface) and REST stands for (Representational State Transfer)
  • The Function of API is to connect one application to another application. You can say that it is a connector between two applications. On the other hand, REST API build the connection between Client and server using URL and HTTP protocols. 
  • REST API's are widely used for exchanging data between systems or applications. API provides product or service to communicate with other products and services without having to know how they're implemented.
  • API is a set of functions and procedures that allow one application to access the feature of other application.
  • API supports CRUD (Create Read Update Delete) actions as it works with HTTP verbs GET, PUT, POST, and DELETE
  • REST API is a web service that supports only HTTP protocol whereas API supports HTTP/HTTPS protocol.
  • Web service supports XML while API supports XML and JSON


REST API's Provide ability to support remote procedure calls and they are loosely coupled as well. The main reason to excessive use of REST API's because it requires limited resources, fewer security requirements and browser compatibility and scalability as well.

Ashir Ali

Student at sindh madressatul islam uniersity

4 年

Bro What is difference between soap api vs rest api?

回复
Fayyaz Niazi

Senior Full Stack Developer

4 年

Just like your wife without makeup and with makeup. Wrapper over Rest API with small modification is Web API.

Tanzeel Ur Rehman

Software Developer | Microsoft Dynamics 365 Business Central | AL | C#

4 年

Great article. Keep it up. There is a change needed in the article, I might be wrong, every API is not a REST API, every REST API is an API. The reason is for an API to be REST API, it must be restful complaince.

要查看或添加评论,请登录

Azeem Aleem的更多文章

  • Stop Using Inline Styles in React js

    Stop Using Inline Styles in React js

    Always avoid passing inline Styles to any react components. It's a little tiny thing that causes a huge problem in our…

    28 条评论
  • React + Leaflet in web Applications

    React + Leaflet in web Applications

    We use a lot of mobile apps which are using map services. Same like google map, Uber, Careem and Bykea mobile…

    2 条评论
  • Difference Between Git & Github

    Difference Between Git & Github

    Git Git is a version control system for tracking changes in computer files/Your local system. But what is the version…

    1 条评论
  • Interview-Based Concept (CONST)

    Interview-Based Concept (CONST)

    Concept of const is a little bit tricky which you should understand if you are a javascript developer. When anybody…

    2 条评论
  • How does JS Hoisting work?

    How does JS Hoisting work?

    Variable Hoisting is a by the default behaviour of javascript to compile the code in a specific manner. We mostly…

  • Can I use Multiple useEffects in a single Component?

    Can I use Multiple useEffects in a single Component?

    Using the useEffect hook we can inform the react that we need some data after component render. It can handle any side…

    4 条评论
  • Pure and Impure Functions in React/JS

    Pure and Impure Functions in React/JS

    Pure Functions A Pure function is a function that does not modify any external variable. And the Impure function…

    8 条评论
  • What is Async/await in React

    What is Async/await in React

    "Await" only works inside the Async functions. As you know that asynchronous function tasks are never dependent on each…

    7 条评论

社区洞察

其他会员也浏览了