PHP Development App Interface (II)

Source: Internet
Author: User

How the App communicates:
Client App<========> Server Service
Send HTTP requests from the client to the server, the server does the corresponding processing, return the corresponding data to the client, the data to have strict format, the common JSON and XML.

The address requested by the client is not visible and the address is encapsulated in the app;
The returned data is not HTML, either JSON or XML.

Client app Communication Format differences:

XML (Extended Markup Language)
Nodes can be customized, HTML tags can not be customized;
XML is a source language that allows users to define their own markup language. Uniform format, cross-platform and language, ideal for data transfer.
The root node must have only one.
The label has to end.

JSON (a lightweight data interchange format with good scale and easy portability)
Cross-platform and language.

Difference:
1. Readability---"XML strong
2. Generate Data---"JSON handy
3. Transfer speed-"JSON fast"

What the app interface does:
Get the data, get the data from the database or the cache, and then return to the client through the interface data;
Submits the data, submits the data through the interface to the server, then the server does the corresponding processing. Commit has get mode and post mode.

Common interfaces:
1. Detection of the need for updates, updated operations, version upgrade interface, with the submission of data and access to data in two forms,
2. Get the Data interface.

PHP Development App Interface (II)

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.