restful api is a set of specifications for communication in the front and back, this specification allows the use of front and rear side development easier
Protocol: http or https
Data transfer format: Use json
url links: url link can not have a verb (/ get_list /), only nouns (/ list /), for some plural nouns, it should be added after the s (/ lists /)
http request method:
GET: get from the server resources, / user / id /: Gets the specified user, / users /: Get all users
POST: create a resource on the server, / user /: create a user
PUT: update the resource on the server, the client provides updated data all, / user / id /: update a user's information
PATCH: updated resources on the server, the client provides only need to change the properties, / user / id /: update a user's information
dELETE: delete a resource from the server, / user / id /: delete the specified user
Status Code See: https: //blog.csdn.net/quhongqiang/article/details/79579437