Interface configuration method and device and storage medium

Through the automated interface configuration method, the key parameters and relationships in the interface document are determined, the configuration file is generated and tested, the problems of low interface configuration efficiency and high error are solved, and efficient and reliable interface configuration is achieved.

CN119336408AActive Publication Date: 2025-01-21ZHONGKE YUNGU TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411386568.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-21
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

In the prior art, the interface configuration is inefficient and the error is high, which leads to developers need to manually configure the interface parameters of each express company, and the parameter structure is complex, which increases the configuration difficulty.

Method used

By determining the key parameters in the interface document of the access object, convert the synonym, determine the key parameters of the target, and its basic relationship and business logic relationship, generate configuration files, and test and deploy to achieve automated interface configuration.

Benefits of technology

The time of the interface configuration is greatly shortened, the efficiency of the interface configuration is improved, the errors are reduced, the labor cost is saved, and the reliability of the interface configuration is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336408A_ABST
    Figure CN119336408A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to an interface configuration method and device and a storage medium. Comprising the following steps: determining key parameters in an interface document of a to-be-accessed object; the synonym of each key parameter is converted; determining a plurality of target key parameters from all the converted key parameters; determining a basic relationship among the target key parameters; determining a mapping relationship and a business logic relationship between each target key parameter and a standard parameter in a parameter mapping rule base; generating a configuration file for the to-be-accessed object according to the basic relationship and the business logic relationship among the target key parameters; testing the configuration file; under the condition that the configuration file passes the test, the configuration file is deployed to complete the interface configuration of the to-be-accessed object, the interface configuration time is greatly shortened, the interface configuration efficiency is improved, human errors are reduced through a full-automatic interface configuration mode, the labor cost is saved, and the interface configuration reliability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an interface configuration method, device and storage medium. Background Art

[0002] In a logistics management system, developers are usually required to manually connect to the interfaces of various express companies. The interface documents of each express company involve a large number of parameter configurations, which require developers to configure the interface parameters locally and debug the interfaces on the official websites of various express companies. The complex parameter structure of each interface document increases the difficulty of manual interface configuration, resulting in inefficient interface configuration, and manual interface configuration is extremely prone to errors. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide an interface configuration method, device and storage medium to solve the problems of low efficiency and high error in interface configuration in the prior art.

[0004] In order to achieve the above-mentioned object, the first aspect of the present application provides an interface configuration method, the method comprising:

[0005] Determine the key parameters in the interface document of the object to be accessed;

[0006] For each key parameter, determine the synonyms of the key parameter among all the key parameters, and convert the synonyms of the key parameters into the key parameters;

[0007] Determine a plurality of target key parameters from all the converted key parameters;

[0008] Determine the basic relationship between each target key parameter, wherein the basic relationship includes the hierarchical relationship and dependency relationship between each target key parameter;

[0009] Determine the mapping relationship between each target key parameter and the standard parameter in the parameter mapping rule base, and determine the business logic relationship between each target key parameter based on the mapping relationship;

[0010] Generate a configuration file for the object to be accessed according to the basic relationship between each target key parameter and the business logic relationship between each target key parameter;

[0011] Test configuration files;

[0012] If the configuration file test passes, deploy the configuration file to complete the interface configuration of the object to be accessed.

[0013] In an embodiment of the present application, determining multiple target key parameters from all converted key parameters includes: using a preset entity recognition model to identify each converted key parameter to determine the entity corresponding to each converted key parameter; determining the target entity that meets preset conditions from all entities, and determining the key parameters corresponding to each target entity as the target key parameters.

[0014] In an embodiment of the present application, the method also includes: before testing the configuration file, performing syntax verification on the configuration file to determine whether there are syntax errors in the configuration file, and performing logic verification on the configuration file to determine whether the parameter logic in the configuration file is consistent with the preset logic; if there are no syntax errors in the configuration file and the parameter path logic in the configuration file is consistent with the preset logic, the configuration file is tested.

[0015] In an embodiment of the present application, testing the configuration file includes: using each data in a preset data set to perform unit testing with the configuration file in turn to obtain an interface call result corresponding to each data; for each data in the preset data set, determining whether the interface call result of the data is consistent with the preset result of the data; when the interface call result of each data is consistent with the preset result of each data, determining that the configuration file test passes; when the interface call result of any data is inconsistent with the preset result of the any data, adjusting the configuration file according to the interface call result of the any data, and returning to the step of using each data in the preset data set to perform unit testing with the configuration file in turn until the configuration file test passes.

[0016] In an embodiment of the present application, determining the basic relationship between each target key parameter includes: determining the category of each target key parameter; for each target key parameter, when the category of the target key parameter is a preset category, splitting the parameter structure of the target key parameter to obtain sub-parameters of the target key parameter; for each target key parameter, determining the basic relationship between the target key parameter and each other target key parameter according to the type and attributes of the sub-parameters of the target key parameter.

[0017] In an embodiment of the present application, the method also includes: after determining the basic relationship between each target key parameter, determining each target key parameter as a node; for any two target key parameters, generating a connecting edge between two nodes corresponding to the two target key parameters according to the basic relationship between the two target key parameters; generating a parameter relationship graph according to all nodes and all connecting edges, and visualizing the parameter relationship graph.

[0018] In an embodiment of the present application, the method also includes: before determining the key parameters in the interface document of the object to be accessed, text cleaning the interface document, and standardizing the cleaned interface document so that all parameters in the interface document are parameters in a preset format.

[0019] In an embodiment of the present application, the method also includes: after completing the interface configuration of the object to be accessed, using a virtual machine to simulate the interface calling environment, and connecting the object to be accessed to the logistics system in the interface calling environment to run the logistics service of the object to be accessed.

[0020] A second aspect of the present application provides an interface configuration device, including:

[0021] a memory configured to store instructions;

[0022] The processor is configured to call instructions from the memory and implement the above interface configuration method when executing the instructions.

[0023] A third aspect of the present application provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned interface configuration method.

[0024] Through the above technical solution, multiple target key parameters can be determined from the interface document of the object to be accessed, and the basic relationship and business logic key between each target key parameter can be determined, so as to generate a configuration file of the object to be accessed according to the basic relationship and business logic relationship between each target key parameter, so as to realize the automatic parsing of the interface document of the object to be accessed and the intelligent generation of the configuration file. The configuration file is tested, and if the configuration file test passes, the configuration file is deployed to complete the interface configuration of the object to be accessed, which greatly shortens the time of interface configuration and improves the efficiency of interface configuration. The fully automated interface configuration method reduces human errors, saves labor costs, and improves the reliability of interface configuration.

[0025] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0027] Figure 1 A first flow chart of an interface configuration method according to an embodiment of the present application is schematically shown;

[0028] Figure 2A second flow chart of an interface configuration method according to an embodiment of the present application is schematically shown;

[0029] Figure 3 A third flow chart of an interface configuration method according to an embodiment of the present application is schematically shown;

[0030] Figure 4 A schematic diagram of an interface configuration system according to an embodiment of the present application is schematically shown;

[0031] Figure 5 The internal structure of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0033] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0034] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0035] Figure 1 The first flow chart of an interface configuration method according to an embodiment of the present application is schematically shown. Figure 1 As shown, an embodiment of the present application provides an interface configuration method, which may include the following steps.

[0036] Step 101: Determine key parameters in the interface document of the object to be accessed.

[0037] Step 102: For each key parameter, determine the synonyms of the key parameter in all the key parameters, and convert the synonyms of the key parameters into the key parameters.

[0038] Step 103: Determine a plurality of target key parameters from all the converted key parameters.

[0039] The processor can determine the key parameters in the interface document of the object to be accessed, and the format of the interface document can be word format, pdf format, HTML format, etc. The key parameters can be parameters that are indispensable for completing the interface configuration of the object to be accessed, and can include the attributes, types, specifications, etc. of the object to be accessed. After obtaining the key parameters of the interface document, for each key parameter, the processor can determine the synonyms of the key parameter in all key parameters, and convert all the synonyms of the key parameter into the key parameter. For example, the processor can determine that "parameters", "parameter's", and "parameter" are all synonyms of "parameter". The processor can convert "parameters", "parameter's", and "parameter" in the keywords into "parameter" to determine that all forms of synonyms are the same word to ensure the accuracy of the interface document. After obtaining all the converted key parameters, the processor can determine multiple target key parameters from all the converted key parameters.

[0040] In an embodiment of the present application, determining multiple target key parameters from all converted key parameters includes: using a preset entity recognition model to identify each converted key parameter to determine the entity corresponding to each converted key parameter; determining the target entity that meets preset conditions from all entities, and determining the key parameters corresponding to each target entity as the target key parameters.

[0041] The processor can determine multiple target key parameters from all the converted key parameters. Specifically, the processor can use a preset entity recognition model to identify each converted key parameter to determine the entity corresponding to each converted key parameter. After obtaining the entity corresponding to each converted key parameter, the processor can determine the target entity that meets the preset conditions from all entities, and determine the key parameters corresponding to each target entity as the target key parameters. The preset conditions can be determined based on the user's business needs for the access object.

[0042] Step 104: Determine the basic relationship between each target key parameter, wherein the basic relationship includes the hierarchical relationship and the dependency relationship between each target key parameter.

[0043] After determining a plurality of target key parameters, the processor may determine a basic relationship between each target key parameter, wherein the basic relationship includes a hierarchical relationship and a dependency relationship between each target key parameter.

[0044] In an embodiment of the present application, determining the basic relationship between each target key parameter includes: determining the category of each target key parameter; for each target key parameter, when the category of the target key parameter is a preset category, splitting the parameter structure of the target key parameter to obtain sub-parameters of the target key parameter; for each target key parameter, determining the basic relationship between the target key parameter and each other target key parameter according to the type and attributes of the sub-parameters of the target key parameter.

[0045] The processor may determine the basic relationship between each target key parameter. Specifically, the processor may determine the category of each target key parameter. The category may include required items, optional items, arrays, objects, etc. For each target key parameter, when the category of the target key parameter is a preset category, the processor may split the parameter structure of the target key parameter to obtain the sub-parameters of the target key parameter. The preset category may be an array and an object. The processor determines the basic relationship between the target key parameter and each other target key parameter according to the type and attribute of the sub-parameter of the target key parameter.

[0046] In an embodiment of the present application, the method also includes: after determining the basic relationship between each target key parameter, determining each target key parameter as a node; for any two target key parameters, generating a connecting edge between two nodes corresponding to the two target key parameters according to the basic relationship between the two target key parameters; generating a parameter relationship graph according to all nodes and all connecting edges, and visualizing the parameter relationship graph.

[0047] After determining the basic relationship between each target key parameter, the processor can determine each target key parameter as a node. For any two target key parameters, the processor can generate a connection edge between two nodes corresponding to the two target key parameters based on the basic relationship between the two target key parameters. After obtaining the connection edge between each two nodes, the processor can generate a parameter relationship graph based on all nodes and all connection edges, and visualize the parameter relationship graph so that the user can clearly understand the relationship between each target key parameter, which is convenient for the user to modify and edit.

[0048] Step 105: Determine the mapping relationship between each target key parameter and the standard parameter in the parameter mapping rule base, and determine the business logic relationship between each target key parameter according to the mapping relationship.

[0049] Step 106: Generate a configuration file for the object to be accessed according to the basic relationship between each target key parameter and the business logic relationship between each target key parameter.

[0050] Step 107: Test the configuration file.

[0051] Step 108: If the configuration file test passes, deploy the configuration file to complete the interface configuration of the object to be accessed.

[0052] The processor can also determine the mapping relationship between each target key parameter and the standard parameter in the parameter mapping rule base, and determine the business logic relationship between each target key parameter based on the mapping relationship. After determining the basic relationship and business logic relationship between each target key parameter, the processor can generate a configuration file for the object to be accessed based on the basic relationship between each target key parameter and the business logic relationship between each target key parameter. After obtaining the configuration file of the object to be accessed, the processor can test the configuration file. If the configuration file test passes, the processor can deploy the configuration file to complete the interface configuration of the object to be accessed.

[0053] In an embodiment of the present application, the method also includes: before testing the configuration file, performing syntax verification on the configuration file to determine whether there are syntax errors in the configuration file, and performing logic verification on the configuration file to determine whether the parameter logic in the configuration file is consistent with the preset logic; if there are no syntax errors in the configuration file and the parameter path logic in the configuration file is consistent with the preset logic, the configuration file is tested.

[0054] Before testing the configuration file, the processor can perform syntax verification on the configuration file to determine whether there are any syntax errors in the configuration file. And perform logic verification on the configuration file to determine whether the parameter logic in the configuration file is consistent with the preset logic. If there are no syntax errors in the configuration file and the parameter logic in the configuration file is consistent with the preset logic, the processor can mechanically test the configuration file. The preset logic can be determined by the user based on demand, such as whether all required items in the configuration file have been filled in, whether the relationship between parameters is handled correctly, etc. In the case that there are syntax errors in the configuration file, and / or the parameter logic in the configuration file is inconsistent with the preset logic, the processor can go back to the step of determining the key parameters in the interface document of the object to be accessed until there are no syntax errors in the configuration file and the parameter logic in the configuration file is consistent with the preset logic.

[0055] In an embodiment of the present application, testing the configuration file includes: using each data in a preset data set to perform unit testing with the configuration file in turn to obtain an interface call result corresponding to each data; for each data in the preset data set, determining whether the interface call result of the data is consistent with the preset result of the data; when the interface call result of each data is consistent with the preset result of each data, determining that the configuration file test passes; when the interface call result of any data is inconsistent with the preset result of the any data, adjusting the configuration file according to the interface call result of the any data, and returning to the step of using each data in the preset data set to perform unit testing with the configuration file in turn until the configuration file test passes.

[0056] The processor can test the configuration file. Specifically, the processor can use each data in the preset data set to perform unit testing with the configuration file in turn to obtain the interface call result corresponding to each data. For each data in the preset data set, the processor can determine whether the interface call result of the data is consistent with the preset result of the data. In the case that the interface call result of each data is consistent with the preset result of each data, the processor can determine that the configuration file test passes. In the case that the interface call result of any data is inconsistent with the preset result of the arbitrary data, the processor can adjust the configuration file according to the interface call result of the arbitrary data, and return to the step of using each data in the preset data set to perform unit testing with the configuration file in turn until the configuration file test passes.

[0057] In an embodiment of the present application, the method also includes: before determining the key parameters in the interface document of the object to be accessed, text cleaning the interface document, and standardizing the cleaned interface document so that all parameters in the interface document are parameters in a preset format.

[0058] Before determining the key parameters in the interface file of the object to be connected, the processor can perform text cleaning on the interface document and standardize the cleaned interface document so that all parameters in the interface document are parameters in a preset format. The preset format is determined by the user based on business needs.

[0059] like Figure 2As shown, the user can click the document upload button to upload the interface document of the object to be accessed. Specifically, the upload progress of the interface document can be displayed in real time, so that the user can understand the upload status of the interface document, and the content of the interface document can be displayed in real time, so that the user can confirm whether the uploaded interface document is the interface document of the object to be accessed, and ensure the correctness of the document. After the processor obtains the interface document of the object to be accessed, the interface document can be cleaned. Specifically, the processor can use a document format checker to automatically identify and verify whether the interface document is in a supported format, and extract the metadata of the document, such as the document title, author, creation date, etc. The user can also use OCR technology (Optical Character Recognition) to identify non-electronic documents, convert them into editable and searchable text formats, and upload them. The processor can use a document cleaning algorithm to remove non-parameter related information such as the cover, directory, page, footer, etc. of the interface document to speed up processing efficiency. For example, if the interface document is in HTML format and contains a large number of HTML tags and annotations, the processor can use regular expressions and DOM (Document Object Model) parsing technology to remove the tags and annotations in the interface document and only retain the text content of the interface document. The processor can store the cleaned interface document in the storage space, encrypt the interface document, assign a document number to the interface document, and record the timestamp of the interface document upload, the document version number and other information.

[0060] After text cleaning of the interface document, the processor can perform keyword extraction (corresponding to the key parameters above). Specifically, the processor can identify keywords in the interface document through natural language processing technology, such as "parameter", "field", "attribute", "required", "optional", etc. For example, the processor recognizes the text content "parameter name is used to identify the user's identity" in the interface document, then the processor can extract the two keywords "parameter" and "name". After identifying all the keywords in the interface document, the processor can use the stem extraction algorithm to convert all synonyms in the keywords into the same word. For example, convert "parameters" to "parameter", and convert "parameter's" to "parameter" to obtain the converted keywords.

[0061] The processor can determine the target keyword (corresponding to the target key parameter above) from the converted keywords. Specifically, the processor can use the named entity recognition model to identify each converted keyword to determine the entity corresponding to each converted keyword, and determine the target entity that meets the preset conditions from all entities. For example, the interface document is an interface document of a certain express company. The processor can use the named entity recognition model to identify the keywords in the interface document to obtain the entities corresponding to each keyword, and determine the target entities related to "express number", "sender's address", etc. from all entities, and determine the keywords corresponding to each target entity as the target keywords.

[0062] After determining the target keywords, the processor can extract the relationships of the target keywords, such as the hierarchical relationship and dependency relationship between "sender's address" and "street", "city", and "country". After determining the relationship between each target keyword, the processor can perform anomaly detection and perform structural analysis on each target keyword when no anomalies occur in each target keyword. Specifically, the processor can generate a parameter relationship diagram based on the relationship between each keyword, so that the user can understand the hierarchical relationship between the text content of the interface document.

[0063] After generating the parameter relationship graph, the processor can perform parameter mapping. Specifically, Figure 3 As shown, the processor can build a parameter mapping rule library and perform intelligent matching parameters. Specifically, the processor can determine the purpose of each target keyword based on regular expressions and keyword searches. After determining the purpose of each target keyword, the processor can process conditional logic to determine the mapping relationship between each target keyword and the standard parameters in the parameter rule mapping library. For variable target keywords, the processor can also perform dynamic parameter instantiation to update the mapping relationship corresponding to the variable target keywords in real time. After completing the mapping of each target keyword, the processor can generate a configuration file. Specifically, the processor can fill in a configuration file template based on the hierarchical relationship, dependency relationship and mapping relationship of each target keyword to obtain the configuration file of the object to be accessed, and verify the configuration file template. After the configuration file is verified, the processor can deploy the configuration file to complete the interface configuration of the object to be accessed.

[0064] In an embodiment of the present application, the method also includes: after completing the interface configuration of the object to be accessed, using a virtual machine to simulate the interface calling environment, and connecting the object to be accessed to the logistics system in the interface calling environment to run the logistics service of the object to be accessed.

[0065] After completing the interface configuration of the object to be accessed, the processor can use a virtual machine to simulate the interface call environment, and connect the object to be accessed to the logistics system in the interface call environment to run the logistics service of the object to be accessed. After running the logistics service of the object to be accessed, the processor can also automatically update the configuration file based on user needs, and compare the configuration files before and after the update to determine the changes in the configuration files before and after the update, and provide a restore and traceability button so that the user can click the restore and traceability button to restore to any version of the configuration file.

[0066] Through the above technical solution, the automatic parsing of the interface document of the object to be accessed and the intelligent generation of the configuration file are realized, which greatly shortens the time of interface configuration and improves the efficiency of interface configuration. The fully automated interface configuration method reduces human errors, saves labor costs, and improves the reliability of interface configuration.

[0067] Figure 1 , Figure 2 as well as Figure 3 FIG. 1 is a flow chart of an interface configuration method in an embodiment. It should be understood that although Figure 1 , Figure 2 as well as Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 , Figure 2 as well as Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0068] The embodiment of the present application also provides an interface configuration device, including:

[0069] a memory configured to store instructions;

[0070] The processor is configured to call instructions from the memory and implement the above interface configuration method when executing the instructions.

[0071] The present application also provides an interface configuration system. Figure 4As shown, the interface configuration system may include an interface parser, a parameter mapping engine, a dynamic configuration generator, a unified debugging platform, and a version control system, wherein the interface parser can automatically parse the express company interface document, extract the parameter structure and business logic; the parameter mapping engine can map the parsed parameters to the standard business model; the dynamic configuration generator can automatically generate a configuration file based on the mapping result; the unified debugging platform can provide a graphical interface, support parameter adjustment and real-time debugging; the version control system can record configuration changes for easy backtracking and management. The above interface configuration system can be used by the physical management system.

[0072] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned interface configuration method.

[0073] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected via a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store key parameters, target key parameters, configuration files and other data. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, an interface configuration method is implemented.

[0074] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0075] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: determining key parameters in an interface document of an object to be accessed; for each key parameter, determining synonyms of the key parameter in all key parameters, and converting the synonyms of the key parameters into key parameters; determining multiple target key parameters from all converted key parameters; determining a basic relationship between each target key parameter, wherein the basic relationship includes a hierarchical relationship and a dependency relationship between each target key parameter; determining a mapping relationship between each target key parameter and a standard parameter in a parameter mapping rule library, and determining a business logic relationship between each target key parameter based on the mapping relationship; generating a configuration file for the object to be accessed based on the basic relationship between each target key parameter and the business logic relationship between each target key parameter; testing the configuration file; and if the configuration file test passes, deploying the configuration file to complete the interface configuration of the object to be accessed.

[0076] In one embodiment, determining multiple target key parameters from all converted key parameters includes: using a preset entity recognition model to identify each converted key parameter to determine the entity corresponding to each converted key parameter; determining target entities that meet preset conditions from all entities, and determining the key parameters corresponding to each target entity as the target key parameters.

[0077] In one embodiment, the method further includes: before testing the configuration file, performing syntax verification on the configuration file to determine whether there are syntax errors in the configuration file, and performing logic verification on the configuration file to determine whether the parameter logic in the configuration file is consistent with the preset logic; if there are no syntax errors in the configuration file and the parameter logic in the configuration file is consistent with the preset logic, testing the configuration file.

[0078] In one embodiment, testing the configuration file includes: using each data in a preset data set to perform unit testing with the configuration file in turn to obtain an interface call result corresponding to each data; for each data in the preset data set, determining whether the interface call result of the data is consistent with the preset result of the data; when the interface call result of each data is consistent with the preset result of each data, determining that the configuration file test has passed; when the interface call result of any data is inconsistent with the preset result of the any data, adjusting the configuration file according to the interface call result of the any data, and returning to the step of using each data in the preset data set to perform unit testing with the configuration file in turn until the configuration file test passes.

[0079] In one embodiment, determining the basic relationship between each target key parameter includes: determining the category of each target key parameter; for each target key parameter, when the category of the target key parameter is a preset category, splitting the parameter structure of the target key parameter to obtain sub-parameters of the target key parameter; for each target key parameter, determining the basic relationship between the target key parameter and each other target key parameter according to the type and attributes of the sub-parameters of the target key parameter.

[0080] In one embodiment, the method also includes: after determining the basic relationship between each target key parameter, determining each target key parameter as a node; for any two target key parameters, generating a connecting edge between two nodes corresponding to the two target key parameters according to the basic relationship between the two target key parameters; generating a parameter relationship graph according to all nodes and all connecting edges, and visualizing the parameter relationship graph.

[0081] In one embodiment, the method further includes: before determining the key parameters in the interface document of the object to be accessed, performing text cleaning on the interface document, and standardizing the cleaned interface document so that all parameters in the interface document are parameters in a preset format.

[0082] In one embodiment, the method further includes: after completing the interface configuration of the object to be accessed, using a virtual machine to simulate the interface calling environment, and connecting the object to be accessed to the logistics system in the interface calling environment to run the logistics service of the object to be accessed.

[0083] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of the initialization interface configuration method.

[0084] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0085] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0086] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0088] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0089] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0090] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0091] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0092] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. An interface configuration method, characterized in that: The method comprises: Determine the key parameters in the interface document of the object to be accessed; For each key parameter, determine the synonyms of the key parameter in all key parameters, and convert the synonyms of the key parameter into the key parameter; Determine a plurality of target key parameters from all the converted key parameters; Determine the basic relationship between each target key parameter, wherein the basic relationship includes the hierarchical relationship and the dependency relationship between each target key parameter; Determine a mapping relationship between each target key parameter and a standard parameter in a parameter mapping rule base, and determine a business logic relationship between each target key parameter based on the mapping relationship; Generate a configuration file for the object to be accessed according to the basic relationship between each target key parameter and the business logic relationship between each target key parameter; testing the configuration file; When the configuration file passes the test, the configuration file is deployed to complete the interface configuration of the object to be accessed.

2. The interface configuration method according to claim 1, characterized in that: Determining a plurality of target key parameters from all the converted key parameters includes: Using a preset entity recognition model to identify each converted key parameter to determine the entity corresponding to each converted key parameter; Target entities that meet preset conditions are determined from all entities, and key parameters corresponding to each target entity are determined as target key parameters.

3. The interface configuration method according to claim 1, characterized in that: The method further comprises: Before testing the configuration file, performing syntax verification on the configuration file to determine whether there are syntax errors in the configuration file, and performing logic verification on the configuration file to determine whether the parameter logic in the configuration file is consistent with the preset logic; When there is no syntax error in the configuration file and the parameter path logic in the configuration file is consistent with the preset logic, the configuration file is tested.

4. The interface configuration method according to claim 3, characterized in that: The test configuration file includes: Each data in the preset data set is used to perform unit testing with the configuration file in turn to obtain an interface call result corresponding to each data; For each data in the preset data set, determining whether the interface call result of the data is consistent with the preset result of the data; When the interface call result of each data is consistent with the preset result of each data, it is determined that the configuration file test has passed; When the interface call result of any data is inconsistent with the preset result of any data, the configuration file is adjusted according to the interface call result of any data, and the process returns to the step of performing unit testing on each data in the preset data set in turn with the configuration file until the configuration file test passes.

5. The interface configuration method according to claim 1, characterized in that: Determining the basic relationship between each target key parameter includes: Identify the categories of key parameters for each objective; For each target key parameter, when the category of the target key parameter is a preset category, splitting the parameter structure of the target key parameter to obtain sub-parameters of the target key parameter; For each target key parameter, a basic relationship between the target key parameter and other target key parameters is determined according to the type and attribute of the sub-parameters of the target key parameter.

6. The interface configuration method according to claim 1, characterized in that: The method further comprises: After determining the basic relationship between each target key parameter, each target key parameter is determined as a node; For any two target key parameters, generating a connection edge between two nodes corresponding to the two target key parameters according to the basic relationship between the two target key parameters; A parameter relationship graph is generated according to all nodes and all connection edges, and the parameter relationship graph is visualized.

7. The interface configuration method according to claim 1, characterized in that: The method further comprises: Before determining key parameters in the interface document of the object to be accessed, the interface document is text cleaned, and the cleaned interface document is standardized so that all parameters in the interface document are parameters in a preset format.

8. The interface configuration method according to claim 1, characterized in that: The method further comprises: After completing the interface configuration of the object to be accessed, a virtual machine is used to simulate the interface calling environment, and the object to be accessed is connected to the logistics system in the interface calling environment to run the logistics service of the object to be accessed.

9. An interface configuration device, characterized in that: include: a memory configured to store instructions; A processor is configured to call the instruction from the memory and implement the interface configuration method according to any one of claims 1 to 8 when executing the instruction.

10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, which are used to enable a machine to execute the interface configuration method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and system of adapting data model to user interface component

    CN102906697A

  • Text keyword association method and device, equipment and storage medium

    CN115510188A

  • API interface configuration method, system and equipment

    CN117539459A

  • Interface parameter testing method and device, electronic equipment and storage medium

    CN118394656A

  • Multi-dimensional classification method and device and storage medium

    CN118709092A