Project debugging method, device and system, computer equipment, storage medium and computer program product

By configured and generate interface documents on the interface server, quickly query and send the results of the response data, solve the problem of low efficiency of traditional debugging methods, and realize the efficient debugging processing of the project.

CN119377098AInactive Publication Date: 2025-01-28GUANGZHOU DINGJIA COMPUTER TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411609965.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-01-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the project development process, the traditional method of post-development and re-debugging leads to low project debugging efficiency and consumes a lot of time and manpower.

Method used

By implementing a project debugging method on the interface server, receiving the business needs information of the debugging items sent by the local server, configure and generate interface documents, record the correspondence between the request parameters and the response data result, quickly query the target response data results And send it to the local server for corresponding debugging.

Benefits of technology

It improved the debugging efficiency of the project, avoided the time and manpower waste caused by debugging after waiting for the project, and achieved timely project debugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377098A_ABST
    Figure CN119377098A_ABST
Patent Text Reader

Abstract

The invention relates to a project debugging method, device and system, computer equipment, a storage medium and a computer program product. The method comprises the following steps: receiving business demand information of a to-be-debugged project sent by a local server; configuring an interface corresponding to the business demand information, and generating an interface document corresponding to the interface; the interface document is used for recording a corresponding relationship between a request parameter of the business demand information and a response data result; receiving a target request parameter which is sent by the local server and is associated with the to-be-debugged item; querying the corresponding relationship recorded in the interface document according to the target request parameter to obtain a target response data result corresponding to the target request parameter; and sending the target response data result to the local server, so that the local server performs corresponding debugging processing on the to-be-debugged item according to the target response data result. By adopting the method, the project debugging efficiency can be 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 a project debugging method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] At present, during the project development process, debugging the project is crucial to improving the quality of the project.

[0003] In traditional technology, when debugging a project, the method of debugging after development is generally adopted; however, this method is likely to consume a lot of time and manpower, resulting in low project debugging efficiency. Summary of the Invention

[0004] Based on this, it is necessary to provide a project debugging method, device, system, computer equipment, computer-readable storage medium and computer program product that can improve the debugging efficiency of the project in response to the above technical problems.

[0005] In a first aspect, the present application provides a project debugging method, applied to an interface server, the method comprising:

[0006] Receive business requirement information of the project to be debugged sent by the local server;

[0007] Configure the interface corresponding to the business requirement information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results;

[0008] Receiving target request parameters associated with the project to be debugged sent by the local server;

[0009] According to the target request parameters, query the corresponding relationship recorded in the interface document to obtain the target response data result corresponding to the target request parameters;

[0010] The target response data result is sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

[0011] In one embodiment, generating an interface document corresponding to the interface includes:

[0012] Obtain the request parameters and response data results of the business requirement information;

[0013] Verifying the request parameters and the response data result to obtain a verification result;

[0014] When the verification result satisfies the preset verification result, constructing the corresponding relationship according to the request parameters and the response data result;

[0015] The interface document is generated according to the corresponding relationship.

[0016] In one embodiment, after sending the target response data result to the local server so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result, the method further includes:

[0017] Acquire an interface document set corresponding to the interface document; the interface document set includes a historical interface document corresponding to the interface document;

[0018] According to the interface document, the interface document set is updated to obtain an updated interface document set.

[0019] In one embodiment, after updating the interface document set according to the interface document to obtain an updated interface document set, the method further includes:

[0020] Receiving an interface document modification request sent by the local server;

[0021] Filtering the interface document corresponding to the interface document modification request from the updated interface document set as the interface document to be modified;

[0022] According to the interface document modification request, the interface document to be modified is modified to obtain a modified interface document corresponding to the interface document to be modified.

[0023] In one embodiment, configuring the interface corresponding to the business requirement information includes:

[0024] According to the business requirement information of the project to be debugged, query the correspondence between the business requirement information and the interface information to obtain the target interface information corresponding to the business requirement information of the project to be debugged;

[0025] According to the target interface information, an interface corresponding to the business requirement information of the project to be debugged is configured.

[0026] In one embodiment, after receiving the business requirement information of the project to be debugged sent by the local server, the method further includes:

[0027] Obtaining an entropy value corresponding to the business demand information;

[0028] Determining the importance of the business demand information according to the entropy value corresponding to the business demand information;

[0029] Filtering out the business demand information whose importance is greater than a preset importance from the business demand information as key business demand information;

[0030] The configuration of the interface corresponding to the business requirement information also includes:

[0031] Configure the interface corresponding to the key business requirement information.

[0032] In a second aspect, the present application further provides a project debugging device, which is applied to an interface server, and the device includes:

[0033] An information receiving module is used to receive business requirement information of the project to be debugged sent by the local server;

[0034] A document generation module is used to configure the interface corresponding to the business requirement information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results;

[0035] A parameter receiving module, configured to receive target request parameters associated with the project to be debugged, sent by the local server;

[0036] A result query module is used to query the corresponding relationship recorded in the interface document according to the target request parameters, and obtain the target response data result corresponding to the target request parameters;

[0037] The project debugging module is used to send the target response data result to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

[0038] In a third aspect, the present application further provides a project debugging system, the system comprising: an interface server and a local server;

[0039] The local server is used to send the business requirement information of the project to be debugged to the interface server;

[0040] The interface server is used to configure the interface corresponding to the business demand information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business demand information and the response data results;

[0041] The local server is further configured to send target request parameters associated with the project to be debugged to the interface server;

[0042] The interface server is further configured to query the corresponding relationship recorded in the interface document according to the target request parameters, obtain the target response data result corresponding to the target request parameters, and send the target response data result to the local server;

[0043] The local server is further configured to perform corresponding debugging processing on the project to be debugged according to the target response data result.

[0044] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0045] Receive business requirement information of the project to be debugged sent by the local server;

[0046] Configure the interface corresponding to the business requirement information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results;

[0047] Receiving target request parameters associated with the project to be debugged sent by the local server;

[0048] According to the target request parameters, query the corresponding relationship recorded in the interface document to obtain the target response data result corresponding to the target request parameters;

[0049] The target response data result is sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

[0050] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0051] Receive business requirement information of the project to be debugged sent by the local server;

[0052] Configure the interface corresponding to the business requirement information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results;

[0053] Receiving target request parameters associated with the project to be debugged sent by the local server;

[0054] According to the target request parameters, query the corresponding relationship recorded in the interface document to obtain the target response data result corresponding to the target request parameters;

[0055] The target response data result is sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

[0056] In a sixth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:

[0057] Receive business requirement information of the project to be debugged sent by the local server;

[0058] Configure the interface corresponding to the business requirement information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results;

[0059] Receiving target request parameters associated with the project to be debugged sent by the local server;

[0060] According to the target request parameters, query the corresponding relationship recorded in the interface document to obtain the target response data result corresponding to the target request parameters;

[0061] The target response data result is sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

[0062] The project debugging method, apparatus, system, computer device, storage medium and computer program product described above first receive business requirement information of the project to be debugged sent by the local server, then configure the interface corresponding to the business requirement information, and generate an interface document recording the correspondence between the request parameters of the business requirement information and the response data result as the interface document corresponding to the interface, then receive the target request parameters associated with the project to be debugged sent by the local server, then query the correspondence recorded in the interface document according to the target request parameters, obtain the target response data result corresponding to the target request parameters, and finally send the target response data result to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result. In this way, when debugging the project, the interface and the interface document corresponding to the interface are pre-configured according to the business requirement information of the project to be debugged, so that when receiving the target request parameters associated with the project to be debugged, the target response data result can be quickly queried according to the correspondence, so that the project to be debugged can be debugged in a timely manner, which is conducive to improving the debugging efficiency of the project; moreover, the solution does not need to wait until the project is developed before debugging, avoiding the defect of using the debugging method after development, which is easy to consume a lot of time and manpower and lead to low debugging efficiency of the project, further improving the debugging efficiency of the project. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0064] Figure 1 An application environment diagram of a project debugging method in an embodiment;

[0065] Figure 2 A schematic diagram of a process flow of a project debugging method in one embodiment;

[0066] Figure 3 A schematic flow chart of a project debugging method according to another embodiment;

[0067] Figure 4 A flow chart of a front-end development and debugging method integrating an interface document and an interface server in one embodiment;

[0068] Figure 5 A structural block diagram of a project debugging device in one embodiment;

[0069] Figure 6 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0071] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0072] The project debugging method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in FIG. , the local server 102 communicates with the interface server 104 via a network. Specifically, refer to Figure 1, the local server 102 sends the business requirement information of the project to be debugged to the interface server 104; the interface server 104 configures the interface corresponding to the business requirement information and generates an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results; the local server 102 sends the target request parameters associated with the project to be debugged to the interface server 104; the interface server 104 queries the correspondence recorded in the interface document based on the target request parameters, obtains the target response data results corresponding to the target request parameters, and sends the target response data results to the local server 102; the local server 102 performs corresponding debugging processing on the project to be debugged based on the target response data results. Among them, the local server 102 refers to the server corresponding to the debugging processing of the project to be debugged. The interface server 104 refers to the server used to process the interface and the interface document corresponding to the interface. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0073] In an exemplary embodiment, Figure 2 As shown, a project debugging method is provided, which is applied to Figure 1 Taking the interface server in the example as an example, in this embodiment, the method includes the following steps:

[0074] Step S201: receiving business requirement information of a project to be debugged sent by a local server.

[0075] The project to be debugged refers to a software project that needs to be debugged.

[0076] The business requirement information is used to indicate the specific business functions that the project to be debugged should implement.

[0077] Exemplarily, the interface server builds a network path between itself and the local server; then, the interface server tests the network path through a network testing tool to obtain test results (such as the network delay between the interface server and the local server); then, if the test results meet the preset test results, the interface server receives business demand information of the project to be debugged sent by the local server through the network path.

[0078] Step S202: configure the interface corresponding to the business requirement information and generate an interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results.

[0079] The interface is also called API (Application Programming Interface).

[0080] Request parameters refer to the parameter information carried by the request information associated with the business requirement information, including the HTTP (HyperText Transfer Protocol) request type, request URL (Uniform Resource Locator), specific parameters, etc.

[0081] The response data result refers to the predefined output data corresponding to the request parameters. It should be noted that there is a one-to-one correspondence between request parameters and response data results. For example, request parameter A corresponds to response data result a, and request parameter B corresponds to response data result b.

[0082] Exemplarily, the interface server performs a rationality check on the business requirement information and obtains a verification result corresponding to the business requirement information; then, if the verification result is passed, the interface server configures the interface corresponding to the business requirement information; then, the interface server determines the request parameters and response data results of the business requirement information based on the business requirement information; then, the interface server constructs a correspondence between the request parameters and response data results of the business requirement information based on the request parameters and response data results of the business requirement information; then, the interface server generates an interface document corresponding to the interface based on the correspondence.

[0083] Step S203: Receive target request parameters associated with the project to be debugged sent by the local server.

[0084] The target request parameters refer to the request parameters required for debugging the project to be debugged.

[0085] Exemplarily, the interface server receives, via a network path between the interface server and the local server, request parameters required for debugging the project to be debugged, which are sent by the local server, as target request parameters associated with the project to be debugged.

[0086] Step S204: query the corresponding relationship recorded in the interface document according to the target request parameters to obtain the target response data result corresponding to the target request parameters.

[0087] The target response data result refers to the response data result corresponding to the target request parameters.

[0088] Exemplarily, the interface server queries the corresponding relationship recorded in the interface document according to the target request parameters, and obtains the response data result corresponding to the target request parameters in the corresponding relationship as the target response data result.

[0089] Step S205 : sending the target response data result to the local server, so that the local server performs corresponding debugging processing on the debugging project according to the target response data result.

[0090] Exemplarily, the interface server sends the target response data result to the local server; the local server obtains the preset response data result corresponding to the target request parameter, and performs corresponding debugging processing on the debugging project based on the difference between the target response data result and the preset response data result.

[0091] In the above-mentioned project debugging method, the business requirement information of the project to be debugged is first received from the local server, and then the interface corresponding to the business requirement information is configured, and an interface document is generated to record the corresponding relationship between the request parameters of the business requirement information and the response data result as the interface document corresponding to the interface. Then, the target request parameters associated with the project to be debugged are received from the local server, and then, according to the target request parameters, the corresponding relationship recorded in the interface document is queried to obtain the target response data result corresponding to the target request parameters. Finally, the target response data result is sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result. In this way, when debugging the project, the interface and the interface document corresponding to the interface are pre-configured according to the business requirement information of the project to be debugged, so that when receiving the target request parameters associated with the project to be debugged, the target response data result can be quickly queried according to the corresponding relationship, so that the project to be debugged can be debugged in a timely manner, which is conducive to improving the debugging efficiency of the project. Moreover, the scheme does not need to wait until the project is developed before debugging, avoiding the defect of using the debugging method after development, which is easy to consume a lot of time and manpower, resulting in low debugging efficiency of the project, and further improving the debugging efficiency of the project.

[0092] In an exemplary embodiment, the above step S202 generates an interface document corresponding to the interface, which specifically includes the following contents: obtaining request parameters and response data results of business requirement information; verifying the request parameters and response data results to obtain verification results; when the verification results meet the preset verification results, constructing a corresponding relationship based on the request parameters and response data results; and generating an interface document based on the corresponding relationship.

[0093] Among them, the request parameters and response data results are verified, including judging the dictionary type of the request parameters and response data results (such as string, array, etc.), and judging whether the request parameters and response data results meet the preset design requirements.

[0094] The verification result is used to indicate the verification status corresponding to the request parameters and response data results.

[0095] The preset verification result refers to a pre-set verification result, such as whether the dictionary types of the request parameters and the response data result both meet the preset dictionary types, and whether the request parameters and the response data result both meet the preset design requirements. It should be noted that the preset verification result depends on the situation.

[0096] Exemplarily, the interface server obtains the request parameters and response data results of the business demand information from the database; then, the interface server verifies the request parameters and response data results to obtain a verification result; then, when the verification result meets the preset verification result, the interface server constructs a corresponding relationship based on the request parameters and response data results; then, the interface server generates an interface document corresponding to the interface according to the corresponding relationship and a pre-set interface document format.

[0097] In this embodiment, by verifying the request parameters and response data results, the accuracy and completeness of the data can be ensured, thereby avoiding interface call failure or erroneous results due to erroneous data, which is conducive to improving the accuracy of the request parameters and response data results recorded in the interface document, thereby improving the accuracy of the interface document.

[0098] In an exemplary embodiment, the above-mentioned step S205, after sending the target response data result to the local server, so that the local server performs corresponding debugging processing on the debugging project according to the target response data result, specifically includes the following contents: obtaining an interface document set corresponding to the interface document; the interface document set includes a historical interface document corresponding to the interface document; according to the interface document, updating the interface document set to obtain an updated interface document set.

[0099] The interface document set includes historical interface documents corresponding to the interface documents.

[0100] The historical interface document refers to the historical version of the interface document. For example, if the interface document of the interface corresponding to the business requirement information is version V3, the historical interface document can be V2 or V1.

[0101] The updated interface document set refers to the interface document set after the update process.

[0102] Exemplarily, the interface server obtains multiple historical interface documents corresponding to the interface document as an interface document set corresponding to the interface document; then, the interface server updates the interface document set according to the interface document to obtain an updated interface document set; for example, the interface server adds the interface document to the interface document set to obtain an updated interface document set.

[0103] In this embodiment, by obtaining an interface document collection including historical interface documents, past versions can be referenced during the update process to avoid missing important change information; moreover, updating the interface document collection based on the current interface document can ensure that the documents in the collection are always consistent with the actual interface, avoiding errors caused by developers and users using outdated interface documents.

[0104] In an exemplary embodiment, after the interface document collection is updated according to the interface document to obtain the updated interface document collection, the following contents are specifically included: receiving an interface document modification request sent by a local server; filtering out the interface document corresponding to the interface document modification request from the updated interface document collection as the interface document to be modified; modifying the interface document to be modified according to the interface document modification request to obtain a modified interface document corresponding to the interface document to be modified.

[0105] The interface document modification request is used to indicate the request information corresponding to the modification process of the interface document.

[0106] The interface document to be modified refers to the interface document corresponding to the interface document modification request.

[0107] Among them, the modified interface document is the interface document to be modified after the modification process is performed on the modified interface document.

[0108] Exemplarily, the interface server receives an interface document modification request sent by the local server through a network path between the interface server and the local server; then, the interface server parses the interface document modification request to obtain parsed information; then, the interface server extracts the document identification information (such as document name information, document version information, etc.) in the parsed information; then, the interface server filters out the interface document corresponding to the document identification information from the updated interface document collection as the interface document to be modified; then, the interface server modifies the interface document to be modified according to the key modification information (such as the content that needs to be modified) in the interface document modification request, and obtains a modified interface document corresponding to the interface document to be modified.

[0109] In this embodiment, through precise screening, the interface document corresponding to the interface document modification request is selected from the updated interface document collection as the interface document to be modified, so that the specific interface document that needs to be modified can be quickly located, ensuring the accuracy of the interface document modification and avoiding erroneous operations on other irrelevant documents.

[0110] In an exemplary embodiment, the above step S202, configuring the interface corresponding to the business requirement information, specifically includes the following contents: according to the business requirement information of the project to be debugged, querying the correspondence between the business requirement information and the interface information, and obtaining the target interface information corresponding to the business requirement information of the project to be debugged; according to the target interface information, configuring the interface corresponding to the business requirement information of the project to be debugged.

[0111] The correspondence between the business requirement information and the interface information is used to indicate the association between the business requirement information and the interface information. For example, business requirement information M corresponds to interface information m, and business requirement information N corresponds to interface information n.

[0112] The target interface information refers to the interface information corresponding to the business requirement information of the project to be debugged, including the interface type and interface quantity.

[0113] Exemplarily, the interface server queries the correspondence between the business requirement information and the interface type based on the business requirement information of the project to be debugged, and obtains the interface type corresponding to the business requirement information of the project to be debugged; then, the interface server queries the correspondence between the business requirement information and the number of interfaces based on the business requirement information of the project to be debugged, and obtains the number of interfaces corresponding to the business requirement information of the project to be debugged; then, the interface server uses the interface type and the number of interfaces corresponding to the business requirement information of the project to be debugged as the target interface information corresponding to the business requirement information of the project to be debugged; then, the interface server configures the interface corresponding to the business requirement information of the project to be debugged based on the target interface information.

[0114] In this embodiment, the corresponding relationship is queried according to the business requirement information of the project to be debugged, thereby ensuring that the interface information that best matches the business requirement information is found, avoiding the situation of arbitrary interface selection or incorrect configuration, and facilitating improving the accuracy of interface configuration.

[0115] In an exemplary embodiment, the above-mentioned step S201, after receiving the business requirement information of the project to be debugged sent by the local server, specifically includes the following contents: obtaining the entropy value corresponding to the business requirement information; determining the importance corresponding to the business requirement information based on the entropy value corresponding to the business requirement information; and screening out the business requirement information whose importance is greater than the preset importance from each business requirement information as the key business requirement information.

[0116] Then, configure the interface corresponding to the business requirement information, specifically including the following content: configure the interface corresponding to the key business requirement information.

[0117] The entropy value corresponding to the business demand information is used to indicate the degree of confusion corresponding to the business demand information.

[0118] The importance level of the business requirement information is used to indicate the importance of the business requirement information.

[0119] The preset importance level refers to a pre-set importance level used to determine the importance level of the business demand information. It should be noted that the preset importance level depends on the circumstances.

[0120] Among them, key business demand information refers to business demand information whose importance is greater than a preset importance.

[0121] Exemplarily, the interface server inputs the business demand information into a pre-trained information entropy model to obtain an entropy value corresponding to the business demand information; then, the interface server queries the correspondence between the entropy value and the importance based on the entropy value corresponding to the business demand information, and obtains the importance corresponding to the entropy value of the business demand information as the importance corresponding to the business demand information; then, the interface server filters out the business demand information whose importance is greater than the preset importance from each business demand information as the key business demand information; then, the interface server configures the interface corresponding to the key business demand information.

[0122] In this embodiment, by screening out business demand information with an importance greater than a preset importance as key business demand information, limited resources can be concentrated on these key business demands, thereby improving resource utilization efficiency, ensuring that key business demands are met first, and avoiding waste and dispersion of resources.

[0123] In an exemplary embodiment, Figure 3 As shown, this application also provides another project debugging method, which is applied to Figure 1 The interface server in the example is used as an example to illustrate the specific steps:

[0124] Step S301: receiving business requirement information of a project to be debugged sent by a local server.

[0125] Step S302 : According to the business requirement information of the project to be debugged, the corresponding relationship between the business requirement information and the interface information is searched to obtain the target interface information corresponding to the business requirement information of the project to be debugged.

[0126] Step S303: configuring an interface corresponding to the business requirement information of the project to be debugged according to the target interface information.

[0127] Step S304: Obtain the request parameters and response data results of the business demand information; verify the request parameters and response data results to obtain a verification result.

[0128] Step S305 : When the verification result satisfies the preset verification result, a correspondence relationship between the request parameters of the business requirement information and the response data result is constructed according to the request parameters and the response data result.

[0129] Step S306: Generate an interface document based on the corresponding relationship; the interface document is used to record the corresponding relationship between the request parameters of the business requirement information and the response data results.

[0130] Step S307: Receive target request parameters associated with the project to be debugged sent by the local server.

[0131] Step S308: query the corresponding relationship recorded in the interface document according to the target request parameters to obtain the target response data result corresponding to the target request parameters.

[0132] Step S309: Send the target response data result to the local server, so that the local server performs corresponding debugging processing on the debugging project according to the target response data result.

[0133] In the above-mentioned project debugging method, when debugging a project, the interface and the interface document corresponding to the interface are pre-configured according to the business requirement information of the project to be debugged, so that when receiving the target request parameters associated with the project to be debugged, the target response data results can be quickly queried according to the corresponding relationship, so that the project to be debugged can be debugged accordingly in a timely manner, which is conducive to improving the debugging efficiency of the project; moreover, this solution does not need to wait until the project is developed before debugging, avoiding the defect of using the debugging method after development, which is easy to consume a lot of time and manpower, resulting in low debugging efficiency of the project, and further improving the debugging efficiency of the project.

[0134] In an exemplary embodiment, in order to more clearly illustrate the project debugging method provided by the embodiment of the present application, the project debugging method is specifically described below with a specific embodiment. In one embodiment, Figure 4 As shown, the present application also provides a front-end development debugging system and method that integrates interface documents and interface servers. When debugging a project, the business requirement information of the project to be debugged is first received from the local server, and then the interface corresponding to the business requirement information is configured, and an interface document that records the correspondence between the request parameters of the business requirement information and the response data results is generated as the interface document corresponding to the interface. Next, the target request parameters associated with the project to be debugged are received from the local server, and then, based on the target request parameters, the correspondence recorded in the interface document is queried to obtain the target response data results corresponding to the target request parameters. Finally, the target response data results are sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged based on the target response data results. Specifically including the following contents:

[0135] 1. API system construction:

[0136] Choose a technology stack: Decide which backend technology to use to build your API server.

[0137] Design database model: Design data storage structure based on business requirements.

[0138] Write API logic: implement specific business logic processing.

[0139] Integrated document generation tool: used to automatically generate API documentation.

[0140] Front-end UI (User Interface) design and implementation: Create a simple and easy-to-use user interface to facilitate front-end developers to test APIs.

[0141] Deploy applications: Deploy the developed applications to the server to ensure they are accessible.

[0142] The system supports the management of Restful API (Representational State Transfer Application Programming Interface) interfaces (including adding, modifying, checking and publishing) and document management (document updating, document previewing and document exporting).

[0143] 2. Debugging process:

[0144] Added API Demo (sample interface): supports editing. The interface needs to be defined before task development.

[0145] (1) Developers log in to the API system.

[0146] (2) Add a new API Demo to the API system.

[0147] (3) Define request parameters and response data results.

[0148] Front-end proxy configuration: The front-end developer configures the proxy address and port to point to the API system.

[0149] Front-end access system: Front-end developers access the API system through a proxy.

[0150] Sending requests: Front-end developers send HTTP requests in the project.

[0151] View response results: The API system returns simulated response results for viewing and debugging.

[0152] If the API parameters are changed during development, select the corresponding API name in the API list, modify its parameters, and restart the proxy debugging.

[0153] 3. Interface documentation update:

[0154] Log in to the backend management system: Developers log in using their account and password.

[0155] View the newly added API details: Find the corresponding API entry and click the Edit button.

[0156] Update document content: description, parameter types, or other relevant information after final version debugging.

[0157] Save and Publish: Save the updated content after confirmation.

[0158] Automatic verification: The system automatically checks whether the document format is correct.

[0159] Release update: If the verification is passed, log in to the administrator (such as the project leader) account for confirmation and review, and then release the new version of the document.

[0160] 4. Implementation of rights management:

[0161] Assign different permission roles to different developers, such as general developer, project leader, etc.

[0162] Strictly control the modification permissions of interface documents to prevent misoperation and data leakage.

[0163] It's important to note that in the API system, request parameters and response data are verified by checking dictionary types (string, array, etc.) before submission to ensure they meet design requirements. Once verified and successfully submitted, the data is visible on the API management page, and parameter modifications are supported. The version list in the API system allows you to view API interface information for a specific version, making it easier to track operations like adding, modifying, and deleting APIs. This helps resolve issues with older project versions and improve project maintenance. Searching by project name allows you to quickly find the parameters used by the current API interface.

[0164] In the above embodiment, when debugging a project, the interface and corresponding interface documentation are preconfigured based on the business requirements of the project to be debugged. This facilitates the rapid query of target response data results based on the corresponding relationship upon receiving the target request parameters associated with the project to be debugged, thereby enabling timely debugging of the project to be debugged, which is beneficial for improving project debugging efficiency. Furthermore, this solution eliminates the need to wait until project development is complete before debugging, avoiding the time-consuming and labor-intensive post-development debugging approach that results in low project debugging efficiency, further improving project debugging efficiency. Furthermore, by integrating the interface documentation and the interface server, front-end developers are less likely to wait for back-end development to be completed before debugging, thereby improving development efficiency. Real-time updated interface documentation ensures consistency with the actual interface, reducing development errors caused by document-to-implementation discrepancies. By providing an intuitive user interface and visualization of API interface information, including request and response data, it facilitates development in a front-end and back-end separation mode. By recording the modification history of the interface documentation, project management and problem tracing are facilitated.

[0165] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0166] Based on the same inventive concept, the present application also provides a project debugging device for implementing the project debugging method described above. The solution provided by this device is similar to the solution described in the method described above. Therefore, the specific limitations of one or more project debugging device embodiments provided below can be found in the above-mentioned limitations of the project debugging method and will not be repeated here.

[0167] In an exemplary embodiment, Figure 5 As shown, a project debugging device is provided, including: an information receiving module 501, a document generating module 502, a parameter receiving module 503, a result query module 504 and a project debugging module 505, wherein:

[0168] The information receiving module 501 is used to receive the business requirement information of the project to be debugged sent by the local server.

[0169] The document generation module 502 is used to configure the interface corresponding to the business requirement information and generate the interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results.

[0170] The parameter receiving module 503 is configured to receive target request parameters associated with the project to be debugged sent by the local server.

[0171] The result query module 504 is used to query the corresponding relationship recorded in the interface document according to the target request parameters, and obtain the target response data result corresponding to the target request parameters.

[0172] The project debugging module 505 is used to send the target response data result to the local server, so that the local server performs corresponding debugging processing on the debugged project according to the target response data result.

[0173] In an exemplary embodiment, the document generation module 502 is also used to obtain request parameters and response data results of business demand information; verify the request parameters and response data results to obtain verification results; when the verification results meet the preset verification results, build a corresponding relationship based on the request parameters and response data results; and generate an interface document based on the corresponding relationship.

[0174] In an exemplary embodiment, the project debugging device also includes a collection update module for obtaining an interface document collection corresponding to the interface document; the interface document collection includes a historical interface document corresponding to the interface document; according to the interface document, the interface document collection is updated to obtain an updated interface document collection.

[0175] In an exemplary embodiment, the project debugging device also includes a document modification module for receiving an interface document modification request sent by a local server; filtering out the interface document corresponding to the interface document modification request from the updated interface document collection as the interface document to be modified; and modifying the interface document to be modified according to the interface document modification request to obtain a modified interface document corresponding to the interface document to be modified.

[0176] In an exemplary embodiment, the document generation module 502 is also used to query the correspondence between business requirement information and interface information based on the business requirement information of the project to be debugged, and obtain the target interface information corresponding to the business requirement information of the project to be debugged; and configure the interface corresponding to the business requirement information of the project to be debugged based on the target interface information.

[0177] In an exemplary embodiment, the project debugging device also includes an information screening module for obtaining the entropy value corresponding to the business requirement information; determining the importance of the business requirement information based on the entropy value corresponding to the business requirement information; screening out the business requirement information whose importance is greater than the preset importance from each business requirement information as the key business requirement information; the document generation module 502 is also used to configure the interface corresponding to the key business requirement information.

[0178] Each module in the above-mentioned project debugging device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0179] In an exemplary embodiment, referring to Figure 1 , provides a server identity authentication system, the system comprising a local server 102 and an interface server 104;

[0180] The local server 102 is used to send the business requirement information of the project to be debugged to the interface server 104;

[0181] The interface server 104 is used to configure the interface corresponding to the business requirement information and generate the interface document corresponding to the interface; the interface document is used to record the correspondence between the request parameters of the business requirement information and the response data results;

[0182] The local server 102 is further configured to send target request parameters associated with the project to be debugged to the interface server 104;

[0183] The interface server 104 is further configured to query the corresponding relationship recorded in the interface document according to the target request parameters, obtain the target response data result corresponding to the target request parameters, and send the target response data result to the local server 102;

[0184] The local server 102 is further configured to perform corresponding debugging processing on the debugging project according to the target response data result.

[0185] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data such as business demand information and interface documents. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a project debugging method is implemented.

[0186] Those skilled in the art will understand that Figure 6 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.

[0187] In an exemplary embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0188] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0189] In an exemplary embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0190] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0191] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0192] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A project debugging method, characterized in that: Applied to an interface server, the method comprises: Receive business requirement information of the project to be debugged sent by the local server; Configure the interface corresponding to the business demand information, and generate an interface document corresponding to the interface; the interface document is used to record the corresponding relationship between the request parameters of the business demand information and the response data results; Receiving a target request parameter associated with the project to be debugged and sent by the local server; According to the target request parameters, query the corresponding relationship recorded in the interface document to obtain the target response data result corresponding to the target request parameters; The target response data result is sent to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

2. The method according to claim 1, characterized in that The generating of the interface document corresponding to the interface includes: Obtaining request parameters and response data results of the business demand information; Verifying the request parameters and the response data results to obtain a verification result; In the case where the verification result meets the preset verification result, constructing the corresponding relationship according to the request parameter and the response data result; The interface document is generated according to the corresponding relationship.

3. The method according to claim 1, characterized in that After sending the target response data result to the local server so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result, the method further includes: Acquire an interface document set corresponding to the interface document; the interface document set includes a historical interface document corresponding to the interface document; According to the interface document, the interface document set is updated to obtain an updated interface document set.

4. The method according to claim 3, characterized in that After the interface document set is updated according to the interface document to obtain an updated interface document set, the method further includes: Receiving an interface document modification request sent by the local server; Filtering out the interface document corresponding to the interface document modification request from the updated interface document set as the interface document to be modified; According to the interface document modification request, the interface document to be modified is modified to obtain a modified interface document corresponding to the interface document to be modified.

5. The method according to claim 1, characterized in that: The configuring the interface corresponding to the business requirement information includes: According to the business requirement information of the project to be debugged, query the corresponding relationship between the business requirement information and the interface information to obtain the target interface information corresponding to the business requirement information of the project to be debugged; According to the target interface information, an interface corresponding to the business requirement information of the project to be debugged is configured.

6. The method according to any one of claims 1 to 5, characterized in that After receiving the business requirement information of the project to be debugged sent by the local server, it also includes: Obtaining an entropy value corresponding to the business demand information; Determining the importance of the business demand information according to the entropy value corresponding to the business demand information; Filtering out the business demand information whose importance is greater than a preset importance from each of the business demand information as key business demand information; The configuring of the interface corresponding to the business requirement information also includes: Configure the interface corresponding to the key business requirement information.

7. A project debugging device, characterized in that: Applied to an interface server, the device comprises: An information receiving module is used to receive business requirement information of the project to be debugged sent by the local server; A document generation module, used to configure the interface corresponding to the business demand information and generate an interface document corresponding to the interface; the interface document is used to record the corresponding relationship between the request parameters of the business demand information and the response data results; A parameter receiving module, used for receiving target request parameters associated with the project to be debugged sent by the local server; A result query module, used to query the corresponding relationship recorded in the interface document according to the target request parameter, and obtain the target response data result corresponding to the target request parameter; The project debugging module is used to send the target response data result to the local server, so that the local server performs corresponding debugging processing on the project to be debugged according to the target response data result.

8. A project debugging system, characterized in that: The system comprises: an interface server and a local server; The local server is used to send the business requirement information of the project to be debugged to the interface server; The interface server is used to configure the interface corresponding to the business demand information and generate an interface document corresponding to the interface; the interface document is used to record the corresponding relationship between the request parameters of the business demand information and the response data results; The local server is further configured to send target request parameters associated with the project to be debugged to the interface server; The interface server is further used to query the corresponding relationship recorded in the interface document according to the target request parameter, obtain the target response data result corresponding to the target request parameter, and send the target response data result to the local server; The local server is further used to perform corresponding debugging processing on the project to be debugged according to the target response data result.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Program testing system, method and device

    CN106021112A

  • Interface management method and device, equipment and storage medium

    CN111694561A

  • Civil aviation key service node identification method

    CN112036733A

  • Interface test method and device, computer equipment and storage medium

    CN112363941A

  • Method for improving software integration system on basis of simulated port, and related device

    WO2020233369A1