An application programming interface (API) is a set of definitions, protocols, and tools for building application software and connect it with related interfaces. There exist many types of integration that we are calling standards.

API protocol and architecture

APIs exchange commands and data, and this requires clear protocols and architectures — the rules, structures, and constraints that govern an API’s operation. Today, there are three categories of API protocols or architectures: REST, RPC, and SOAP. These may be dubbed “formats,” each with unique characteristics and tradeoffs and employed for different purposes.

REST. The representational state transfer (REST) architecture is perhaps the most popular approach to build APIs. REST relies on a client/server approach that separates the front and back ends of the API and provides considerable flexibility in development and implementation. REST is “stateless,” which means the API stores no data or status between requests. REST supports caching, which stores responses for slow or non-time-sensitive APIs. REST APIs, usually termed “RESTful APIs,” also can communicate directly, or operate through intermediate systems such as API gateways and load balancers.

RPC. The remote procedural call (RPC) protocol is a simple means to send multiple parameters and receive results. RPC APIs invoke executable actions or processes, while REST APIs mainly exchange data or resources such as documents. RPC can employ two different languages, JSON and XML, for coding; these APIs are dubbed JSON-RPC and XML-RPC, respectively.

SOAP. The simple object access protocol (SOAP) is a messaging standard defined by the World Wide Web Consortium and broadly used to create web APIs, usually with XML. SOAP supports a wide range of communication protocols found across the internet such as HTTP, SMTP, and TCP. SOAP is also extensible and style-independent, which allows developers to write SOAP APIs in varied ways and easily add features and functionality. The SOAP approach defines how the SOAP message is processed, the features and modules included the communication protocol(s) supported and the construction of SOAP messages.

Compared with the flexibility of REST, SOAP is a highly structured, tightly controlled, and clearly defined standard. For example, SOAP messages may contain up to four components including an envelope, header, body, and fault (error handling).

LATEST POSTS

GOVERNMENT

PEOPLE
Unity of soul and mind making good decisions
The mind has a will but is incapable of controlling external intention. The soul is able to feel its identity with external intention but has no will.
The unity of soul and mind is the path to happiness
The unity of soul and mind is so rare that it can literally be sold profitably. All masterpieces of culture and art are the essence of unity.

CITIES

SUSTAINABILITY

TECHNOLOGY

smart cities, space, science, technology, quantum, government, economics, SDG, municipal services, startups, influencers, brands, pioneers, innovator's dictionary, history, design