: Update information for a designated zoo (all information about the zoo)
PATCH/ZOOS/ID: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The
designated zoo (all information about the zoo)
PATCH/ZOOS/ID: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API
information about the zoo)
PATCH/ZOOS/ID: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide
: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The
: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The
given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The following are some common
(all information about the zoo)
PATCH/ZOOS/ID: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should pro
given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The following are some common
: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The
given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The following are some common
/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The following are some common parameters.
? limit=10: Specifies the number of records returned
OFFSET=10: Specifies
GET/ZOOS/ID: Get information about a given zoo
PUT/ZOOS/ID: Update information for a designated zoo (all information about the zoo)
PATCH/ZOOS/ID: Update information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the serve
information for a given zoo (some information about the zoo)
DELETE/ZOOS/ID: Delete a zoo
Get/zoos/id/animals: List all animals in a designated zoo
DELETE/ZOOS/ID/ANIMALS/ID: Delete a designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The followin
there are many records, the server cannot return them to the user. The API should provide parameters to filter the returned results. Below are some common parameters.
? Limit = 10: specify the number of returned records? Offset = 10: Specify the start position of the returned record.? Sortby = name order = asc: Specify the attribute in which the returned results are sorted and the sorting order.? Animal_type_id = 1: Specify the filtering ConditionsT
":" List of Zoos ", " type ": " Application/vnd.yourformat+json " }}The code above indicates that there is a link property in the document, and the user reads this property and knows what API to call next. Rel represents the relationship between this API and the current URL (collection relationship, and gives the collection
RESTFul API design guide and instructions for useRESTFul API design guide and instructions for use
I. AgreementThe communication protocol between APIs and users. HTTP is used.
2. Domain NameTry to deploy the API under a dedicated domain name (http://api.example.com)You can a
designated animal from a designated zoo
Vi. filtering information (Filtering)If the number of records is large, the server will not be able to return them to the user. The API should provide parameters to filter the returned results.The following are some common parameters.
HTTPS://API.EXAMPLE.COM/V1/ZOOS?LIMIT=10: Specifies the number of records returned
HTTPS://API.EXAMPLE.COM/V1/ZOOS?OFFSET=10: Specifies the start position of the
Restful API Design GuideNext I will introduce the design details of the RESTful API and discuss how to design a reasonable and useful APIFirst, the agreementThe API communicates with the user protocol, always using the HTTPS pro
General IdeasThis involves two aspects of the problem:One is the interface access authentication problem, the main solution is who can use the interface (user login authentication, routing authentication)One is data transmission security, the main solution interface data is monitored (HTTPS secure transmission, sensitive content encryption, digital signature)User authentication: Token and sessionThe Open Interface API service is actually a form of sta
In the last essay, "Web API Application Architecture design Analysis (1)", I have a broad analysis and design of the various application architectures of Web APIs, the Web API is an application interface framework that can build HTTP services to support a wider range of clients, including browsers, The framework of mob
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.