Last updated: 2018-09-27 15:23:59PDF
API gateway can be used to design your business as open APIs. To make it easy for your future use, it is recommended to follow the rules below when designing APIs:
Do not add a slash "/" at the end of the URI. An additional slash at the end of the URL of a resource can be easily misunderstood as a directory, causing errors in calling.
Use a dash "-" to improve the readability of the URI. Connect words using "-" so that the URI can be easily understood.
It is not allowed to use the underscore
"_"in the URI, because the underscore "_" may be covered by the special effect of underscore in the text viewer and is less readable.
Avoid using uppercase letters which are not aesthetically pleasing and error-prone.
Do not include an extension in the URI. REST API client is recommended to use the format selection mechanism "Accept request header" provided by HTTP.