Interface automatic expansion method, device, equipment and storage medium
Through the interface automatic expansion method, the parameter configuration library is used to automatically generate and replace interface parameters, which solves the problem of low interface expansion efficiency in IT operation and maintenance, and improves the interface expansion efficiency and the accuracy of document management.
Patent Information
- Application Number
- CN202010315794.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-04-21
AI Technical Summary
In the existing technology, when IT operation and maintenance provides services through interfaces, frequent interface code development, compilation, document writing, and joint debugging are required, which is inefficient, and manual updating of interface documents is prone to omissions or errors, resulting in heavy workload for R&D personnel and Unmanageable.
Provides an interface automatic extension method. By obtaining the interface selection information input by the user, it determines the interface extension parameters according to the preset parameter configuration library, replaces the current service interface parameters, generates an extended service interface, and automatically generates calling template code and interface documents to reduce manual labor. Writing and joint debugging work.
It improves the efficiency of external service interface expansion, reduces the development and document management workload of R&D personnel, and ensures the accuracy and consistency of interface documents.
Smart Images

Figure CN113535830B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of databases, and in particular relates to an automatic interface expansion method, device, equipment and storage medium. Background Art
[0002] With the continuous development of "Internet +" technology, more and more enterprises have entered the Internet Technology (IT) era. In order to ensure the reliability and accuracy of IT software and hardware configuration data, enterprises use Configuration Management Database (CMDB) as a data management tool for enterprise software and hardware configuration. CMDB mainly includes five key functions: integration, reconciliation, synchronization, mapping and visualization.
[0003] At present, IT operation and maintenance mainly uses interfaces to provide external services. For example, the CMDB data service interface can be customized, developed, compiled, and debugged according to different user needs and business scenarios. It is also possible to pre-configure common data service interfaces in advance, such as data addition interfaces, data deletion interfaces, data retrieval interfaces, and other interfaces. When users need to consume data, they can directly call the corresponding interface.
[0004] However, the above-mentioned interface-based service provision requires R&D personnel to perform secondary or multiple development, compilation, interface documentation, and interface joint debugging of the interface code, which is inefficient. Summary of the invention
[0005] The embodiments of the present invention provide an automatic interface expansion method, device, equipment and storage medium, which can improve the efficiency of external service interface expansion.
[0006] In a first aspect, a method for automatic interface expansion is provided, the method comprising:
[0007] Get the interface selection information input by the user;
[0008] When the interface selection information is extended interface information, determining interface extension parameters from a preset parameter configuration library according to the interface selection information;
[0009] Replace the interface parameters of the current service interface with interface extension parameters to generate an extended service interface.
[0010] In a possible implementation, the method further includes:
[0011] When the interface selection information is new interface information, receiving interface parameters input by the user;
[0012] Check whether the interface parameters meet the preset parameter properties;
[0013] When the interface parameters meet the preset parameter properties, the target interface is generated.
[0014] In a possible implementation, the method further includes:
[0015] When the interface parameters do not meet the preset parameter attributes, an abnormal prompt message is generated to prompt the user to fill in the interface parameters.
[0016] In a possible implementation, the method further includes:
[0017] Generate calling template code based on interface extension parameters for use in interface calling by the target system.
[0018] In a possible implementation, the method further includes:
[0019] Generate an interface document for the extended service interface to display the interface document to users.
[0020] In a second aspect, an automatic interface expansion device is provided, the device comprising:
[0021] An acquisition module, used to acquire interface selection information;
[0022] A determination module, used for determining interface extension parameters from a preset parameter configuration library according to the interface selection information when the interface selection information is extended interface information;
[0023] The generation module is used to replace the interface parameters of the current service interface with the interface extension parameters to generate an extended service interface.
[0024] In a possible implementation, the device further includes:
[0025] A receiving module, used for receiving interface parameters input by a user when the interface selection information is new interface information;
[0026] A test module is used to test whether the interface parameters meet the preset parameter properties;
[0027] The generation module is also used to generate a target interface when the interface parameters meet the preset parameter attributes.
[0028] In a possible implementation, the generating module is further used to generate abnormal prompt information when the interface parameters do not meet the preset parameter attributes, so as to prompt the user to fill in the interface parameters.
[0029] In a possible implementation, the generation module is further used to generate a calling template code according to the interface extension parameters, so as to be used for the target system to perform interface calling.
[0030] In a possible implementation, the generation module is further used to generate an interface document of the extended service interface, so as to display the interface document to the user.
[0031] According to a third aspect, an electronic device is provided, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method according to the first aspect or any possible implementation manner of the first aspect is implemented.
[0032] In a fourth aspect, a computer storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method in the first aspect or any possible implementation of the first aspect is implemented.
[0033] Based on the provided interface automatic expansion method, device, equipment and storage medium, the interface selection information input by the user is obtained; when the interface selection information is extended interface information, the interface extension parameters are determined from a preset parameter configuration library according to the interface selection information; the interface parameters of the current service interface are replaced with the interface extension parameters, and an extended service interface is generated, thereby improving the efficiency of external service interface expansion. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the following is a brief introduction to the drawings required for use in the embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 It is a schematic diagram of a process of automatic interface expansion provided by an embodiment of the present invention;
[0036] Figure 2 It is a schematic diagram of another process of automatic interface expansion provided by an embodiment of the present invention;
[0037] Figure 3 It is a structural schematic diagram of an interface automatic expansion device provided by an embodiment of the present invention;
[0038] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0040] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0041] With the continuous development of "Internet +" technology, more and more enterprises have entered the era of Internet technology IT. In order to ensure the reliability and accuracy of IT software and hardware configuration data, enterprises use configuration CMDB as a data management tool for enterprise software and hardware configuration. CMDB mainly includes five key functions: integration, reconciliation, synchronization, mapping and visualization.
[0042] At present, IT operation and maintenance mainly uses interfaces to provide external services. For example, the CMDB data service interface can be customized, developed, compiled, and debugged according to different user needs and business scenarios. It is also possible to pre-configure common data service interfaces in advance, such as data addition interfaces, data deletion interfaces, data retrieval interfaces, and other interfaces. When users need to consume data, they can directly call the corresponding interface.
[0043] However, in the above-mentioned interface-based service provision, R&D personnel are required to perform secondary or multiple development, compilation, interface document writing, and interface joint debugging of the interface code, which is inefficient. For example, in the method of pre-configuring the general interface of the data service, if the user needs to open the configuration data separately by device type, such as host, virtual machine, etc., for more fine-grained extended service interfaces, the development needs to adjust the general interface code, revise the interface document, and conduct joint debugging with the third-party system, which is time-consuming and labor-intensive. In addition, when changing the original configuration data service interface or adding a special configuration data service interface, R&D personnel are required to continuously adjust the code and repeatedly conduct interface joint debugging, which consumes a lot of development costs. Moreover, in the interface development, R&D personnel not only need to write the interface code, but also need to provide a complete interface document in accordance with the interface specification. A large amount of interface file editing work wastes a lot of time for R&D personnel. Manual batch updating of interface documents is inevitable to omissions or errors, and collaboration based on interface documents is difficult. Therefore, there are certain difficulties in interface document management.
[0044] So, in terms of CMDB data service interfaces, how to quickly meet user needs, adapt to various business scenarios, and reduce the workload of interface development and document management for R&D personnel is an issue that companies urgently need to solve.
[0045] Therefore, the embodiments of the present invention provide an automatic interface expansion method, apparatus, device and storage medium, which can improve the efficiency of external service interface expansion.
[0046] In order to facilitate understanding of the embodiment of the present invention, the method for automatic interface expansion provided by the embodiment of the present invention is first described in detail.
[0047] Figure 1 The present invention is a flowchart of a method for automatic interface expansion provided by an embodiment of the present invention.
[0048] like Figure 1 As shown, the method for automatic interface expansion provided by an embodiment of the present invention includes:
[0049] S101: Acquire interface selection information input by a user.
[0050] The interface includes different types of interfaces. When the user needs to expand the interface, he can choose different types of interfaces according to his needs. The user can select the interface type to be expanded through the interface expansion service platform, and the interface expansion service platform can be a global wide area network interface (World Wide, Web) terminal.
[0051] Interface extension includes extending the original service interface, and can also be adding a new service interface. Interface selection information includes extended interface information and newly added interface information. Among them, the extended interface information is the information of extending the original service interface, and the extended interface information includes the parameters of the extended interface. The parameters of the extended interface include extended dimension information, such as hierarchical extension according to device types such as host, virtual machine, disk array, and the name of the main directory after the interface extension. For example, when the CMDB query interface is extended to a host query interface and a firewall query interface according to the device type, the extended dimension information is hierarchical extension according to the device type, and the name of the main directory after the service interface is extended is the CMDB query interface by device type. The newly added interface information includes request parameters, such as the name of the interface parameter, the type of the interface parameter, whether the interface parameter is a required interface parameter and the interface description, as well as information such as return parameters, interface description, and interface request method.
[0052] S102: When the interface selection information is extended interface information, determine interface extension parameters from a preset parameter configuration library according to the interface selection information.
[0053] When the interface selection information is extended interface information, the interface needs to be extended based on the original service interface. The parameter configuration library is a database that provides corresponding codes for the parameter information corresponding to the extensible service interface, and is used to store the code values corresponding to the variable parameters passed in the original general service interface of the CMDB. For example, the device type is used as a variable parameter for passing. The corresponding codes in the parameter configuration library may include: the host code 10001000, the firewall code 10503022, etc. The parameter configuration library is determined according to certain coding requirements. For example, the coding requirements between enterprises are different, and the parameter configuration library needs to be determined according to the coding requirements between enterprises.
[0054] Since the extended service interface is based on the original service interface parameter information, the system automatically converts the original service interface request parameters, response parameters, return status code, etc. into the new service grading interface to simulate and generate new service grading interface information.
[0055] When the interface selection information is new interface information, the user will enter the interface parameters to be added according to the interface parameter filling template provided by the interface extension service platform.
[0056] Specifically, when the interface selection information is new interface information, receiving interface parameters input by a user;
[0057] Checking whether the interface parameters meet the preset parameter properties;
[0058] When the interface parameters meet the preset parameter attributes, a target interface is generated.
[0059] Interface parameters refer to the interface parameters that users need to add to the interface. The interface parameters of the newly added interface have certain parameter attributes. For example, the parameter attribute can be that the interface parameter is a mandatory item or a non-mandatory item. Detect whether the interface parameter input by the user is empty. When the parameter attribute of the interface parameter is a mandatory item and the interface parameter input by the user is empty, generate an abnormal prompt message. Among them, the abnormal prompt message can prompt the user to fill in the interface parameter.
[0060] S103: Replace the interface parameters of the current service interface with interface extension parameters to generate an extended service interface.
[0061] By replacing the variable parameters in the original CMDB service interface with the code values matched from the parameter configuration library in batches, the codes corresponding to the interface parameters are automatically encapsulated to form a new extended service interface, which can be used without rewriting and compiling the code.
[0062] For example, the URL of the original CMDB service query interface Uniform Resource Locator (URL) is http: / / ip:port / cmdb / data / {object Class} / {sysIntId}, and the variable parameters are {object Class} and {sysIntId}, then the scanned code values will be used to replace the variable parameter {objectClass} in batches. The replaced original service query interface is encapsulated, and the extended service interface is generated in batches. The encapsulated extended service interface is named, such as the URL of the host query interface is http: / / ip:port / cmdb / data / 10001000 / {sysIntId}.
[0063] In some embodiments, during the coding encapsulation process corresponding to the interface parameters, calling template code can also be automatically generated according to the interface extension parameters to provide code samples for the target system calls, such as third-party system calls, which facilitates R&D personnel to conduct interface joint debugging and testing.
[0064] After the interface expansion is completed, an interface document will be generated and displayed to the user through the web interface, allowing the user to view the interface parameters, etc.
[0065] As an example, Figure 2 As shown, the interface automatic expansion method provided by the embodiment of the present invention includes:
[0066] S201: Obtaining interface selection information. The user selects whether to expand the original service grading interface or to add a new service interface.
[0067] S202: Determine whether it is an extended service interface according to the tag selected by the foreground; if so, execute S203; if not, execute S201.
[0068] When the interface selection information is an extension of the original service interface, the web page scans the library table to display the existing original service interface list and provides the rule parameters that need to be configured during the extension; when the interface selection information is a new service interface, the web page displays the parameters that need to be filled in for the new interface.
[0069] S203: For the interface selection information, the original service interface is extended. Determine the original service interface that needs to be extended and fill in the corresponding hierarchical interface generation rule parameters. For example, when the CMDB query interface is expanded to include a host query interface and a firewall query interface according to the device type, it is necessary to select "Hierarchical expansion by device type" when extending the latitude parameters and fill in the main directory name of the service interface after expansion, "CMDB query interface by device type".
[0070] S204: Determine interface extension parameters from a preset parameter configuration library.
[0071] The system automatically scans the preset dictionary library of the service classification interface according to the generation rules configured in the foreground, identifies the hierarchical extension according to the device type, and extracts the corresponding code values of the relevant device types: host, firewall, virtual machine, disk array, etc. by scanning the preset dictionary library in the background. Execute S205.
[0072] S205: Replace the original service interface parameter variable with the extracted code value. For example, if the original CMDB service query interface URL is http: / / ip:port / cmdb / data / {objectClass} / {sysIntId}, and the variable parameters are {objectClass} and {sysIntId}, then the scanned code values are batch replaced with the variable parameter {objectClass}.
[0073] S206: Encapsulate the replaced original service query interface, generate new service hierarchical interfaces in batches, and name the encapsulated service hierarchical interfaces, such as the URL of the host query interface is http: / / ip:port / cmdb / data / 10001000 / {sysIntId}.
[0074] S207: Automatically generate a calling template code for each newly generated service classification interface return message parameter. The calling template code is a third-party system usage code that simulates the service classification interface being called, and provides a code sample for the interface call of the third-party system, which can be retrieved through a visual interface.
[0075] S208: Automatically generate corresponding interface documents for each newly generated service hierarchical interface. Since the service hierarchical interface is based on the original service interface parameter information, the system automatically simulates and generates new service hierarchical interface information by converting the original service interface request parameters, response parameters, return status code, etc. into the new service hierarchical interface.
[0076] After S208 completes the generation of the corresponding interface document, S211 is executed.
[0077] S211: Display CMDB service hierarchical extension interface information through a visual interface, and provide service interface call method retrieval for third-party systems, including interface name, interface request method, response URL, request message, return message, etc. The display method is to display the new service hierarchical interface in the form of a main directory and a hierarchical directory. The hierarchical directory is displayed according to different types of interface request methods, effectively managing CMDB service interface documents and providing users with access through data sharing.
[0078] S209: For the selected information of adding a new service interface, the relevant parameters of the new service interface will be configured, such as request parameters, return parameters, interface description, interface request method, etc., and it will be verified whether the filled parameters meet the attribute requirements, and an abnormal prompt for the service interface parameter configuration will be provided. If the xx parameter is a required parameter, please fill it in.
[0079] S210: Based on the newly added service interface, such as the newly added CMDB special interface, the system fills in the front-end configuration parameters according to the code generation rules pre-configured in the database, and each rule corresponds to an integrated interface common code block. After S210 is executed to generate the newly added service interface, S211 is executed.
[0080] The automatic interface expansion method provided by the embodiment of the present invention obtains interface selection information input by a user; when the interface selection information is extended interface information, determines interface extension parameters from a preset parameter configuration library according to the interface selection information; replaces the interface parameters of the current service interface with the interface extension parameters, generates an extended service interface, and improves the efficiency of external service interface expansion.
[0081] Figure 3 It is a structural schematic diagram of an interface automatic expansion device provided by an embodiment of the present invention.
[0082] like Figure 3 As shown, an embodiment of the present invention provides an automatic interface expansion device, which may include: an acquisition module 301, a determination module 302, and a generation module 303.
[0083] An acquisition module 301 is used to acquire interface selection information;
[0084] A determination module 302, configured to determine interface extension parameters from a preset parameter configuration library according to the interface selection information when the interface selection information is extended interface information;
[0085] The generation module 303 is used to replace the interface parameters of the current service interface with interface extension parameters to generate an extended service interface.
[0086] Optionally, in some embodiments of the present invention, the device further comprises:
[0087] A receiving module, used for receiving interface parameters input by a user when the interface selection information is new interface information;
[0088] A test module is used to test whether the interface parameters meet the preset parameter properties;
[0089] The generating module 303 is further configured to generate a target interface when the interface parameters meet preset parameter attributes.
[0090] Optionally, in some embodiments of the present invention, the generation module 303 is further used to generate abnormal prompt information when the interface parameters do not meet the preset parameter attributes, so as to prompt the user to fill in the interface parameters.
[0091] Optionally, in some embodiments of the present invention, the generating module 303 is further used to generate a calling template code according to the interface extension parameters, so as to be used for the target system to perform interface calling.
[0092] Optionally, in some embodiments of the present invention, the generating module 303 is further used to generate an interface document of the extended service interface, so as to display the interface document to the user.
[0093] The interface automatic expansion device provided in the embodiment of the present invention is used to obtain interface selection information through an acquisition module; a determination module is used to determine interface extension parameters from a preset parameter configuration library according to the interface selection information when the interface selection information is extended interface information; and a generation module is used to replace the interface parameters of the current service interface with the interface extension parameters to generate an extended service interface, thereby improving the efficiency of external service interface expansion.
[0094] The interface automatic expansion device provided by the embodiment of the present invention performs Figure 1 Each step in the method shown can achieve the technical effect of improving the efficiency of external service interface expansion, and for the sake of brevity, it will not be repeated in detail here.
[0095] Figure 4 A schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention is shown.
[0096] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.
[0097] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0098] The memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 402 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 402 is a non-volatile solid-state memory. In a specific embodiment, the memory 402 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0099] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement Figure 1 and Figure 2 Any one of the interface automatic expansion methods in the illustrated embodiments.
[0100] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0101] The communication interface 403 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0102] Bus 410 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.
[0103] The electronic device can execute the automatic interface expansion method in the embodiment of the present invention, thereby realizing the combination Figure 1 and Figure 2 The illustrated embodiment describes an automatic interface expansion method.
[0104] In addition, in combination with the automatic interface expansion method in the above embodiment, the embodiment of the present invention can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the automatic interface expansion methods in the above embodiment is implemented.
[0105] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0106] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0107] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0108] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. An automatic interface expansion method, characterized in that: The method comprises: Get the interface selection information input by the user; When the interface selection information is extended interface information, determining interface extension parameters from a preset parameter configuration library according to the interface selection information; Replace the interface parameters of the current service interface with the interface extension parameters to generate an extended service interface; When the interface selection information is new interface information, receiving interface parameters input by a user; Checking whether the interface parameters meet the preset parameter properties; When the interface parameters meet the preset parameter attributes, generating a target interface; When the interface parameters do not meet the preset parameter attributes, an abnormal prompt message is generated to prompt the user to fill in the interface parameters; Wherein, when the interface selection information is extended interface information, determining interface extension parameters from a preset parameter configuration library according to the interface selection information includes: Determine the hierarchical interface generation rule parameters of the original service interface that needs to be expanded, wherein the hierarchical interface generation rule parameters include expansion latitude information and the main directory name after the interface is expanded; Scan the service classification interface preset dictionary library according to the extension latitude information and the main directory name after the interface is extended to determine the interface extension parameters; The method further comprises: The service hierarchical extension interface information is displayed through a visual interface, and the service interface call method retrieval is provided for third-party systems, including interface name, interface request method, response URL, request message, return message, and the new service hierarchical interface is displayed in the form of main directory and hierarchical directory.
2. The method according to claim 1, characterized in that The method further comprises: According to the interface extension parameters, a calling template code is generated for use in the target system to perform interface calling.
3. The method according to claim 2, characterized in that The method further comprises: Generate an interface document of the extended service interface for displaying the interface document to the user.
4. An automatic interface expansion device, characterized in that: The device comprises: An acquisition module, used to acquire interface selection information; A determination module, configured to determine interface extension parameters from a preset parameter configuration library according to the interface selection information when the interface selection information is extended interface information; A generation module, used to replace the interface parameters of the current service interface with the interface extension parameters, and generate an extended service interface; A receiving module, used for receiving interface parameters input by a user when the interface selection information is new interface information; A testing module, used to test whether the interface parameters meet the preset parameter attributes; The generating module is further configured to generate a target interface when the interface parameters meet the preset parameter attributes; The generating module is further configured to generate abnormal prompt information when the interface parameters do not meet the preset parameter attributes, so as to prompt the user to fill in the interface parameters; Wherein, the determination module is specifically used for: Determine the hierarchical interface generation rule parameters of the original service interface that needs to be expanded, wherein the hierarchical interface generation rule parameters include expansion latitude information and the main directory name after the interface is expanded; Scan the service classification interface preset dictionary library according to the extension latitude information and the main directory name after the interface is extended to determine the interface extension parameters; The device displays the service hierarchical extension interface information through a visual interface, and provides a service interface calling method retrieval for use by a third-party system, including the interface name, interface request method, response URL, request message, and return message, and displays the new service hierarchical interface in the form of a main directory and a hierarchical directory.
5. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method according to any one of claims 1 to 3 is implemented.
6. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 3.
