简体   繁体   中英

Difference between API and Rest Webservice

When I go through different blogs and articles, the jargon on "REST service, API" put me in a bit confusion.

Can someone explain the difference between API and a Rest service?

-- Regards PT

In short, a REST-service is some sort of API, an API is not a REST-webservice.

Api stands for "Application Programming Interface", and means "A set of rules of how to interact between different pieces of code" A REST-service is a set of rules about how to interact between your code and some code out there on the internet.

Most times in real life, api or webapi is used for anything that provides a method of comunication between client (server) and server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM