This article describes some of the ideas of PHP development app interface.
One, unified interface Development Documentation:
In order to improve the development efficiency and communication convenience, it is necessary to establish normative development documents.
General protection of the interface function or page, interface address, interface parameters, interface return value and other instructions.
Second, the interface data back to consider
1) in order to connect the data between the two sides is correct, and a variety of cases, the need to have interface state parameters
2) Sometimes in order for the app developer to understand the meaning of the state, the corresponding status needs to be written
3) Returns the content data of the interface, usually with a Xml,json format for the data, and an array of arrays to be used as a trial.
4) Notify by NULL when the data is empty.
Third, the client's data to verify
The main is to verify the operation of some users of the client.
PHP Development App Interface