Unlock instant, AI-driven research and patent intelligence for your innovation.

Interface calling method and device, equipment and medium

A technology of interface calling and interface, which is applied in the direction of program control device, program control design, special data processing application, etc., can solve the problems that business needs cannot be responded in time, increase the workload of research and development, increase the complexity of code, etc., and achieve rapid response Business requirements, the effect of reducing R&D workload

Pending Publication Date: 2022-05-24
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the traditional interface calling method requires the system to call the interface multiple times, and implement protocol conversion through coding. The interface nesting between multiple interface calls will increase the complexity of the code. When there are parameter definitions nested in multi-layer collections, the requirements can only be realized through new interfaces, resulting in the inability to respond to business needs in a timely manner, which will greatly increase the workload of research and development and prolong the project cycle

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 calling method and device, equipment and medium
  • Interface calling method and device, equipment and medium
  • Interface calling method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 1 This is a flowchart of an interface calling method provided by the first embodiment of the present invention. This embodiment can be applied to the case where nested parameters are not called through a new interface. The method can be executed by an interface calling device, and the device can be executed by software. and / or hardware, and can generally be integrated in electronic equipment. The electronic device may be a terminal device, a server device, or the like, and the embodiment of the present invention does not limit the type of the electronic device that executes the interface calling method. correspondingly, as figure 1 As shown, the method includes the following operations:

[0033] S110. In response to the interface invocation request for the target interface, acquire at least one target input parameter field matching the interface invocation request and target input parameter data corresponding to each target input parameter field respectively. ...

Embodiment 2

[0046] figure 2 It is a flow chart of an interface invocation method provided by the second embodiment of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiment. In this embodiment, obtaining at least one target input matching the interface invocation request is given. A specific optional implementation manner of the parameter field and the target input parameter data corresponding to each target input parameter field. correspondingly, as figure 2 As shown, the method includes the following operations:

[0047] S210. In response to the interface calling request for the target interface, display at least one target input parameter field according to the interface calling request, and receive target input parameter data corresponding to each target input parameter field input by the user.

[0048] In this embodiment of the present invention, after an interface call request is received, the interface call request can be parsed, a tar...

Embodiment 3

[0103] Figure 5 is a schematic diagram of an interface invocation device provided by Embodiment 3 of the present invention, such as Figure 5 As shown, the device includes: a target input parameter data acquisition module 310, an interface acquisition module 320, a target output parameter data acquisition module 330, and a feedback result determination module 340, wherein:

[0104] The target input parameter data acquisition module 310 is configured to, in response to the interface call request to the target interface, obtain at least one target input parameter field matching the interface call request and target input parameter data corresponding to each target input parameter field respectively;

[0105] The interface obtaining module 320 is configured to obtain the query mapping interface corresponding to the target interface, and obtain the nesting type matching the query mapping interface; the nesting type includes: input parameter field nesting, and / or output parameter ...

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 embodiment of the invention discloses an interface calling method and device, equipment and a medium. The interface calling method comprises the following steps: in response to an interface calling request for a target interface, obtaining at least one target entry parameter field and target entry parameter data matched with the interface calling request; obtaining a query mapping interface corresponding to the target interface, and obtaining a nested type matched with the query mapping interface; the nesting type comprises input parameter field nesting and / or output parameter field nesting; according to the target input parameter field, the target input parameter data, the nesting type, the query mapping interface and the nesting processing result, obtaining target output parameter data corresponding to the target output parameter field of the target interface; and taking the target output parameter data corresponding to the target output parameter field of the target interface as a feedback result for the interface calling request. According to the technical scheme, on the premise that code complexity is not increased, nesting parameters are prevented from being called through a newly-added interface, the research and development workload is reduced, and therefore service requirements are quickly responded.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of interface invocation, and in particular, to an interface invocation method, apparatus, device, and medium. Background technique [0002] At present, when cooperating with different industries, the standard interface of the third party will be arranged and adapted to the interface of the partner. [0003] However, the traditional interface calling method requires the system to call the interface multiple times, and implement protocol conversion through coding. The interface nesting between multiple interface calls will increase the complexity of the code. When there are multiple sets of nested parameter definitions, the requirements can only be realized through new interfaces, resulting in the failure to respond to business requirements in a timely manner, greatly increasing the R&D workload and prolonging the project cycle. SUMMARY OF THE INVENTION [0004] Embodiments of the pres...

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): G06F9/445G06F16/242
CPCG06F9/4451G06F16/242Y02D10/00
Inventor 杨舸
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD