Things to note when developing APP interface with PHP

WBOY
Release: 2016-07-28 08:26:29
Original
1307 people have browsed it

1. Unified interface development documents for both parties

In order to improve development efficiency and facilitate communication, it is necessary to establish standardized development documents.
General protection interface functions or pages, interface addresses, interface parameters, interface return values, etc. are described.
Reference document format:
 PHP开发APP接口注意事项

2. Pay attention to the following

  1. versions and make plans for subsequent interface upgrades.
  2. Provide keys and tokens. Ensure data is not tampered with.
  3. Use get to read data and post to modify data.
  4. The interface return value format has a unified structure. Use JSON format output
  5. interface to record logs. Record request parameters, occupied memory, response time, and response duration. To facilitate subsequent optimization.
  6. Provide unified error codes. Each number represents an error that needs to be documented. Errors are divided into system errors and business logic errors. Create interface documentation.
  7. Record the purpose of each interface, parameter list, and return value description. Usage examples are also given.
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above has introduced the precautions for developing APP interfaces with PHP, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template