And the app provides interface tuning interface those things

Source: Internet
Author: User
  1. It is necessary to have a document: basic content such as: Name, HTTP mode, parameters, return value

  2. Whether the return data type is JSON or XML

  3. 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 ' []

  4. 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.