Traditional Culture Encyclopedia - Weather inquiry - What is API interface and what does it mean?
What is API interface and what does it mean?
What is an API interface?
API refers to the application programming interface, through which we can realize specific functions without knowing its internal implementation details. The API interface can be understood as the encapsulation of a specific service, and the service is encapsulated for others to call, so that many functions do not need to be redeveloped.
For example, we want to know the weather in a week. It is difficult for us to realize this function ourselves, because only the meteorological department knows the weather data. So how do you know the weather information? The meteorological department provides data API for us to use. As long as we enter this area, we can know the weather situation in this area for a week, but we don't need to know how this weather forecast is realized.
In addition, data communication between different systems and programming languages often takes the form of API for data handover.
What are the common API forms?
As we mentioned above, API is actually the encapsulation of a kind of service. We can use different programming languages to write APIs, and different development habits and programming languages lead to different API styles. Common APIs have the following forms:
1, HTTP type interface
Based on the API provided by HTTP protocol, this kind of API is often provided in the form of "web address", for example, the mainstream RESTful now belongs to this kind of interface.
2.RPC interface
RPC refers to remote procedure call, which puts a part of code logic on a remote server and then calls it where needed (calling a remote method is like calling a local method). It is essentially a client/server model, which supports various protocols and data transmission methods.
3.web service interface
WEBService does not specifically refer to some kind of API. All the services we will provide in the form of Web are called Web services, and RESTful also belongs to Web services.
- Previous article:Where is the temperate desert climate mainly distributed?
- Next article:Ronghu Lake in Zhecheng County
- Related articles
- Cold weather greetings
- Several cities in Shaanxi Province
- People who are suitable for the Irish immigration method
- What's the weather like in Jinan, Shandong now?
- I want to visit Niangziguan Town, Pingding County, Yangquan City. How can I enjoy it?
- Su Shi's Poems on Eating Crabs in Autumn
- Please analyze the necessity of vigorously developing green and low-carbon economy in China.
- What's the temperature in Germany these days? Long sleeves, coat?
- Introduction of tourist attractions in Anshun, Guizhou
- Brief Introduction of Shihezi 148 Mission 148 Mission Agricultural Science and Technology Service Center