javascript - Difference between an API and API server? - Stack Overflow

How I understood APIs is that it basically allows munication between 2 applications.So the client asks

How I understood APIs is that it basically allows munication between 2 applications.

So the client asks for a resource, the request reaches the API, if the asked resource (or end point) exists, the request is delegated to the server, the information is fetched from the database and a response it sent to the user.

So the API is between the client and the server.

If the above is true, what is an API server?

Maybe its a stupid question, but I am just confused.

How I understood APIs is that it basically allows munication between 2 applications.

So the client asks for a resource, the request reaches the API, if the asked resource (or end point) exists, the request is delegated to the server, the information is fetched from the database and a response it sent to the user.

So the API is between the client and the server.

If the above is true, what is an API server?

Maybe its a stupid question, but I am just confused.

Share Improve this question asked Dec 25, 2020 at 10:37 Just.a.techJust.a.tech 411 gold badge1 silver badge5 bronze badges 1
  • API is more like the protocol itself – cagri Commented Dec 25, 2020 at 10:38
Add a ment  | 

2 Answers 2

Reset to default 1

Well, in short, API stands for Application Programming Interface, it is where you municate with a "service provider", it can be a server, an application that's locally saved in your system, even a physical device.

API server in the broad web context generally means a server that performs certain actions on request, and those requests are received by API.

An API is hosted on an API server. The server itself is generally a puter on the cloud that runs the code that powers the API. So when you say "the request reaches the API" you are also implicitly saying "the client contacts the API server"

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745116481a4612156.html

相关推荐

  • javascript - Difference between an API and API server? - Stack Overflow

    How I understood APIs is that it basically allows munication between 2 applications.So the client asks

    8小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信