It is necessary to have a document: basic content such as: Name, HTTP mode, parameters, return value
Whether the return data type is JSON or XML
Note for the return value a place ' [], array (), null which in PHP seems to be a type of such as empty;
However, since Android,ios is used in strong-type languages, these types seem to have a huge difference in their nature, so make a pact with the app, either unify ' ' instead of other types, or make explicit comments in the document, such as arrays of data, no data is ' or ' []
The array in PHP is especially not a numeric key, is the character keys in the app parsing can not be interpreted as an array and to resolve to the dictionary type, so unless the special requirements, otherwise, the PHP array is numeric key 0,1,2 this, uncertain when you can use Array_values ($array) An array of PHP processing.
This article is from the "Stones" blog, make sure to keep this source http://liangge.blog.51cto.com/7154562/1903046
And the app provides interface tuning interface those things