Method and device for outputting application program interface data represented by specifications

A technology of application programming interface and standardization, which is applied in the computer field, can solve problems such as inconvenience, application program interface data not realizing standardized representation, etc.

Active Publication Date: 2020-06-12
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the application program interface data has not yet been standardized, which brings a lot of inconvenience to the actual use process

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
  • Method and device for outputting application program interface data represented by specifications
  • Method and device for outputting application program interface data represented by specifications
  • Method and device for outputting application program interface data represented by specifications

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0048] see figure 1 , figure 1 It is a schematic structural diagram of a JavaScript API producer-consumer system provided in the first embodiment of the present application. Such as figure 1 As shown, the system includes a JavaScript API producer 101 , a network 102 and a JavaScript API consumer 103 . The server runs the JavaScript API producer 101 , and the client runs the JavaScript API consumer 103 . Meanwhile, the JavaScript API producer 101 and the JavaScript API consumer 103 communicate through the network 102 . The client can be any kind of programmable electronic device, running one or more JavaScript user applications.

[0049] It should be noted that JavaScript APIs may be used in different operating platforms or operating systems used by JavaScript API producers. For example, using the Microsoft Windows Server JavaScript API in an Apple iOS mobile application may result in a copy of the JavaScript API object model embedded in the mobile application platform and ...

no. 2 example

[0067] Please refer to image 3 , image 3 It is a schematic structural diagram of an apparatus for outputting application program interface data represented by a specification provided in the second embodiment of the present application. The device is applied to clients such as image 3 As shown, the device includes:

[0068] An instantiation module 301, configured to instantiate at least one object, obtain at least one object instance, and mark at least one attribute identifier of an application programming interface according to the at least one object instance;

[0069] The retrieval module 302 is configured to use the attribute identifier of each application program interface to recursively analyze the document object model associated with the application program interface to obtain all objects associated with the application program interface;

[0070] The instrumentation module 303 is configured to perform static analysis on all objects associated with the applicatio...

no. 3 example

[0083] Please refer to Figure 4 , Figure 4 It is a schematic structural diagram of an electronic device provided in the third embodiment of the present application. Such as Figure 4 As shown, it includes: a processor 401, a memory 402 and a bus 403. The memory 402 stores machine-readable instructions executable by the processor 401. When the electronic device is running, the processor 401 and the memory 402 communicate through the bus 403.

[0084] When the machine-readable instructions are executed by the processor 401, the following steps are performed in the method of outputting the application program interface data represented by the specification:

[0085] instantiate at least one object, obtain at least one object instance, and mark at least one attribute identifier of an application program interface according to the at least one object instance;

[0086] Using the attribute identification of each application program interface, recursively analyze the document obj...

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 invention provides a method and device for outputting application program interface data represented by specifications, and the method comprises the steps: instantiating at least one object to obtain at least one object instance, and marking the attribute identification of at least one application program interface according to the object instance; performing recursive analysis on a document object model associated with the application program interface by utilizing the attribute identifier to obtain all objects associated with the application program interface; statically analyzing all objects associated with the application program interface, and creating a data format based on a static analysis result; dynamically analyzing all objects associated with the application program interface, and updating application program interface data expressed in the data format specification based on a dynamic analysis result; and outputting the updated application program interface data represented by the data format specification. According to the application, the application program interface data can be expressed in a standardized manner, and the application of the API can be optimized based on the associated running platform, so that great convenience is brought to the actual use process.

Description

technical field [0001] The present application relates to the field of computer technology, in particular, to a method and device for outputting application program interface data represented by specifications. Background technique [0002] In recent years, the popularity of the JavaScript programming language has risen dramatically, and JavaScript is used in the front-end language of most websites. Therefore, many websites and their associated web applications expose and open source JavaScript APIs for use by client applications on various operating platforms. With the continuous improvement of user experience and performance requirements for major products, the use of JavaScript APIs based on the native runtime environment of the associated platform has become an ideal way to implement client applications. [0003] However, the application program interface data has not yet been standardized, which brings a lot of inconvenience to the actual use process. Contents of the...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F8/71
CPCG06F8/427G06F8/71
Inventor 门宗伟
Owner BEIJING MININGLAMP SOFTWARE SYST CO 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