Interface configuration method, device and storage medium

CN119336408BActive Publication Date: 2025-09-23ZHONGKE YUNGU TECH
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In logistics management systems, interface configuration is inefficient and prone to errors. Existing technologies require manual configuration of interface parameters for each courier company, which increases difficulty and leads to high errors.

Method used

By determining the key parameters in the interface document, identifying synonyms and converting them into target key parameters, determining their basic relationships and business logic relationships, generating configuration files, and testing and deploying them, automated interface configuration is achieved using the preset entity recognition model and parameter mapping rule library.

Benefits of technology

Significantly shorten interface configuration time, improve efficiency, reduce human errors, save labor costs, and improve the reliability of interface configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336408B_ABST
    Figure CN119336408B_ABST
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and in particular to an interface configuration method, device, and storage medium. The method comprises: determining key parameters in an interface document of an object to be accessed; converting synonyms for each key parameter; determining multiple target key parameters from all converted key parameters; determining the basic relationship between each target key parameter; determining the mapping relationship and business logic relationship between each target key parameter and the standard parameters in the parameter mapping rule library; generating a configuration file for the object to be accessed based on the basic relationship and business logic relationship between each target key parameter; testing the configuration file; and deploying the configuration file if the configuration file passes the test to complete the interface configuration of the object to be accessed, thereby significantly shortening the interface configuration time and improving the efficiency of the interface configuration. The fully automated interface configuration method reduces human errors, saves labor costs, and improves the reliability of the interface configuration.
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 logistics management systems, developers are usually required to manually connect to the interfaces of various express delivery companies. The interface documents of each express delivery 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 each express delivery company. The complex parameter structure of each interface document increases the difficulty of manual interface configuration, resulting in inefficient interface configuration. Manual interface configuration is also 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 objectives, the present application provides, in a first aspect, 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 in all key parameters, and convert the synonyms of the key parameter into 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 parameters 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 connected based on 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 connected.

[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 the 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 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 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, 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 is passed; when the interface call result of any data is inconsistent with the preset result of any data, adjusting the configuration file according to the interface call result of 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 is passed.

[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 the two nodes corresponding to the two target key parameters based on the basic relationship between the two target key parameters; generating a parameter relationship graph based on 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, 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.

[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 a 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 having stored thereon instructions for enabling a machine to execute the above-mentioned interface configuration method.

[0024] The above technical solution can identify multiple target key parameters from the interface document of the object to be connected, and determine the basic relationships and business logic keys between each target key parameter. Based on the basic relationships and business logic relationships between each target key parameter, a configuration file for the object to be connected is generated, thereby achieving automatic parsing of the interface document of the object to be connected and intelligent generation of the configuration file. The configuration file is then tested, and if the configuration file passes the test, it is deployed to complete the interface configuration of the object to be connected, significantly shortening the interface configuration time and improving the efficiency of the interface configuration. The fully automated interface configuration method reduces human errors, saves labor costs, and improves the reliability of the interface configuration.

[0025] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent detailed description. 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 detailed description, 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 The following schematically shows a first flow chart of an interface configuration method according to an embodiment of the present application;

[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 diagram of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0032] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions 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, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications 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 for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a 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 key parameters, and convert the synonyms of the key parameter into the key parameter.

[0038] Step 103: Determine a plurality of target key parameters from all 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, thereby ensuring 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 the 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 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 dependency relationship between each target key parameter.

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

[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, if 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 sub-parameters of the target key parameter. The preset category may be an array or an object. The processor determines the basic relationship between the target key parameter and each other target key parameter based on the type and attributes of the sub-parameters 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 the two nodes corresponding to the two target key parameters based on the basic relationship between the two target key parameters; generating a parameter relationship graph based on 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 connecting edge between the two nodes corresponding to the two target key parameters based on the basic relationship between the two target key parameters. After obtaining the connecting edge between each two nodes, the processor can generate a parameter relationship graph based on all nodes and all connecting edges, and visualize the parameter relationship graph so that the user can clearly understand the relationship between the various target key parameters, 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 based on the mapping relationship.

[0049] Step 106: 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.

[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 parameters 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 passes the test, 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 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. When 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 needs, such as whether all required items in the configuration file have been filled in, whether the relationship between parameters is handled correctly, etc. When 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 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, 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 is passed; when the interface call result of any data is inconsistent with the preset result of any data, adjusting the configuration file according to the interface call result of 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 is passed.

[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. When 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 is passed. When the interface call result of any data is inconsistent with the preset result of any data, the processor can adjust the configuration file according to the interface call result of any 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 is passed.

[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, 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.

[0058] Before determining the key parameters in the interface document 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 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, thereby ensuring the correctness of the document. After the processor obtains the interface document of the object to be accessed, it can perform text cleaning on the interface document. 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 to convert them into an editable and searchable text format and upload them. The processor can use a document cleaning algorithm to remove non-parameter related information such as the cover, directory, pages, footers, 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, retaining only the text content of the interface document. The processor can store the cleaned interface document in a storage space, encrypt the interface document, assign a document number to the interface document, and record information such as the timestamp of the interface document upload and the document version number.

[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 delivery number", "sender's address", etc. from all entities, and determine the keywords corresponding to each target entity as the target keyword.

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

[0063] After generating the parameter relationship diagram, 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 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 for the target object, the processor can use a virtual machine to simulate the interface call environment and connect the target object to the logistics system within the interface call environment to run the logistics service for the target object. After running the logistics service for the target object, the processor can also automatically update the configuration file based on user needs, compare the configuration files before and after the update to determine the changes, and provide a restore and traceback button so that the user can click on the restore and traceback buttons 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 one 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. In addition, 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 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 a memory and implement the above interface configuration method when executing the instructions.

[0071] The embodiment of the present application also provides an interface configuration system, such as Figure 4As shown, the interface configuration system can include an interface parser, a parameter mapping engine, a dynamic configuration generator, a unified debugging platform, and a version control system. The interface parser can automatically parse the express company's interface documents and extract parameter structures and business logic; the parameter mapping engine can map the parsed parameters to a standard business model; the dynamic configuration generator can automatically generate configuration files based on the mapping results; the unified debugging platform can provide a graphical interface that supports parameter adjustment and real-time debugging; and 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 data such as key parameters, target key parameters, configuration files, etc. 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 shown in the figure, or combine certain components, or have a different component arrangement.

[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 all 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 the target entity that meets the 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, the configuration file is tested.

[0078] In one embodiment, testing the configuration file includes: using 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, 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 is passed; when the interface call result of any data is inconsistent with the preset result of any data, adjusting the configuration file according to the interface call result of 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 is passed.

[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 further 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 the two nodes corresponding to the two target key parameters based on the basic relationship between the two target key parameters; generating a parameter relationship graph based on 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 connected, using a virtual machine to simulate the interface calling environment, and connecting the object to be connected to the logistics system in the interface calling environment to run the logistics service of the object to be connected.

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

[0084] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can 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 can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic 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 produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. 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 that can direct a computer or other programmable data processing device to work 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 The 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 operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0088] In a typical configuration, a computing device includes one or more processors (CPUs), 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 includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The 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 disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic 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 transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0091] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0092] The above are merely 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 modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all 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; 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; Determine the mapping relationship between each target key parameter and the standard parameter in the parameter mapping rule library, and determine the business logic relationship between the target key parameters 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; If 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, wherein: Determining a plurality of 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; 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, wherein: 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; If 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, wherein: 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 the 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; If 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; If 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 with the configuration file in turn until the configuration file test passes.

5. The interface configuration method according to claim 1, wherein: The basic relationship between the target key parameters is determined as follows: 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. The interface configuration method according to claim 1 , wherein: 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, wherein: 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, wherein: The method further comprises: After completing the interface configuration of the object to be connected, a virtual machine is used to simulate the interface calling environment, and the object to be connected is connected to the logistics system in the interface calling environment to run the logistics service of the object to be connected.

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

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

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

    CN115510188A

  • API interface configuration method, system and equipment

    CN117539459A