Web API Interface

What is the Web API Interface

Have been saying that the back-end development is to keep writing interface, then in the end what is the interface it?

Through the network, it provides the link url front and back office information exchange rules, which is the media front and back office information exchange, which is the interface!

Web API interface is simple generalization has the following four characteristics:

A, url: url looks like a return data link
is similar to https://api.map.baidu.com/place/v2/search

Second, the request method: get, post, put, patch , delete
employed get over the interface mode request

Third, the request parameters: key-value type data json or xml format
AK: 6E823f587c95f0148c19993539b99295
Region: Shanghai
query: Kentucky
output: json

Fourth, the response result: json or xml format data
output request parameter value above parameters determine the data format of the response

Guess you like

Origin www.cnblogs.com/chanyuli/p/11898947.html