Interface defining method, and data transmission method and apparatus

A technology of interface definition and interface, which is applied in the computer field, can solve the problems of low accuracy and scalability of defined interfaces, and achieve the effect of improving scalability and accuracy

Active Publication Date: 2016-02-17
ALIBABA GRP HLDG LTD
View PDF7 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present application provides an interface definition method and a data transmission

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface defining method, and data transmission method and apparatus
  • Interface defining method, and data transmission method and apparatus
  • Interface defining method, and data transmission method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.

[0034] figure 1 The process of defining an interface provided in the embodiments of this application specifically includes the following steps:

[0035] S101: The interface tool uses a preset interface description language to define the interface.

[0036] In the embodiments of the present application, the interface tool discards the traditional way of defining int...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention discloses an interface defining method, and a data transmission method and apparatus, so as to solve the problem in the prior art that a defined interface is relatively poor in accuracy and scalability. The method comprises: an interface tool defining an interface by using a preset interface description language; generating an interface file according to the defined interface; and providing the interface file to a server, so that the server converts data in an original format into data in a target format according to a correspondence, between each field in the original format and each field in the target format, comprised in the interface file. According to the method and apparatus in the present application, the interface is defined by using the preset interface description language, and the interface description language can well describe the fields, so that each field in the target format can be accurately described, thereby effectively improving accuracy of interface defining. In addition to describing an HTTP based interface, the interface description language can also describe an interface based on other protocols, thereby effectively improving scalability of interface defining.

Description

Technical field [0001] This application relates to the field of computer technology, in particular to an interface definition method and data transmission method and device. Background technique [0002] With the development of computer technology, it has become very common to provide data from the back-end equipment to the front-end equipment and the front-end equipment to provide services to users based on the data. Among them, the back-end device may be a server, and the front-end device may be a client. [0003] For example, the client can first send a request message such as a HyperText Transfer Protocol (HTTP) request to the server. After the server receives the request message, it returns the corresponding data to the client according to the request message. The client then Parse the received data and present it to the user. [0004] However, if the format of the data that the client can parse is inconsistent with the format of the data returned by the server, the client wil...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F13/38
Inventor 徐凯王跃乐董松洁
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products