Interface calling method and device, electronic equipment and storage medium

An interface calling and interface technology, applied in program control devices, execution paradigms, etc., can solve problems such as affecting system performance, difficulty in getting started, and increasing development workload, so as to improve calling performance, reduce code development, and realize convenience. Effect

Pending Publication Date: 2021-12-03
挂号网(杭州)科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Under normal circumstances, after the developer inputs the parameters of the interface to be called, he needs to manually perform follow-up operations to realize the interface call, which brings great inconvenience to the developer
[0003] At present, API is one of the interfaces that developers often call in the software development stage. In the existing technology, the calling method of the interface requires developers to understand the calling logic, which increases the development workload, and for beginners, getting started It is difficult; if you do not understand the various parameters in the interface, it is easy to have problems such as affecting system performance

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a schematic flowchart of an interface calling method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of calling an interface during the development process. This method can be executed by the interface calling device in the embodiment of the present invention. The device may be implemented in the form of software and / or hardware, and the hardware may be electronic equipment, such as a mobile terminal or a PC.

[0030] Such as figure 1 Said, the method of the embodiment of the present invention specifically includes the following steps:

[0031] Step 110: Obtain the target interface to be invoked, and analyze and process the target interface to be invoked to obtain interface attribute information.

[0032] Wherein, the target interface to be called can be understood as an interface waiting to be called at the current moment, or an interface to be called by other developers. In this embodiment, the target...

Embodiment 2

[0047] figure 2 It is a schematic flowchart of an interface calling method provided by Embodiment 2 of the present invention. On the basis of the above technical solutions, this embodiment further refines the technical solutions. On the basis of any optional technical solution in the embodiments of the present invention, this embodiment optionally, after determining the reusable component corresponding to the interface attribute information, further includes: calling the The encryption key corresponding to the target interface to be invoked, and based on the preset encryption tool and the encryption key, the interface attribute information is encrypted to obtain an encrypted file.

[0048] On the basis of any optional technical solution in the embodiments of the present invention, optionally, after acquiring the target interface to be invoked, parsing and processing the target interface to be invoked, and obtaining the interface attribute information, further includes: Base...

Embodiment 3

[0072] In order to make those skilled in the art more clear about the technical solutions of the embodiments of the present invention, the following uses an API as an example to give an example of a specific application scenario.

[0073] image 3 It is a schematic flow diagram of an interface calling method in an application scenario provided by an embodiment of the present invention; image 3 As shown in , the target interface to be called is API.

[0074] The method of the embodiment of the present invention may include the following steps:

[0075]Step 1: Get the API;

[0076] Step 2: Parse the input parameters, output parameters and method names of the API, and generate a predefined class file;

[0077] Step 3: Reassemble the parsed input and output parameters to generate a JavaBean file;

[0078] Step 4: Obtain the encryption key from the database, apply the MD5 algorithm to combine the input information with the encryption key, and generate an encrypted file;

[00...

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 discloses an interface calling method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a target to-be-called interface, and carrying out the analysis processing of the target to-be-called interface, and obtaining interface attribute information; determining a reusable component corresponding to the interface attribute information; analyzing the calling method template to obtain a character string to be used; and based on the reusable component and the to-be-used character string, determining a target binary file so as to call the target to-be-called interface based on the target binary file. According to the technical scheme, the problems that in the prior art, the interface calling difficulty is large, and the error rate is high are solved, convenient calling of the interface is achieved, and the calling performance of the interface is improved.

Description

technical field [0001] Embodiments of the present invention relate to computer application technology, and in particular to an interface calling method, device, electronic equipment, and storage medium. Background technique [0002] During the development process, in order to realize a certain function, the developer needs to call the relevant interface from the server. Generally, after inputting the parameters of the interface to be called, the developer needs to manually perform follow-up operations to implement the interface call, which brings great inconvenience to the developer. [0003] At present, API is one of the interfaces that developers often call in the software development stage. In the existing technology, the calling method of the interface requires developers to understand the calling logic, which increases the development workload, and for beginners, getting started It is more difficult; if you do not understand the various parameters in the interface, it ...

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/448
CPCG06F9/449
Inventor 李凯凯
Owner 挂号网(杭州)科技有限公司
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