A system routing configuration method, device, equipment and storage medium

By RESTful standard routing conversion and user modification of the original routes in the system, and generating and configuring modified routes, the problem of chaotic routing configuration in the existing technology is solved, unified standardized management of system routing and user-friendly operation are realized, and the scalability and stability of the system are improved.

CN118631652BActive Publication Date: 2025-04-15BEIJING YOUTEJIE INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410710103.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2025-04-15
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

In the prior art, the system routing configuration is chaotic and the lack of unified specifications, which leads to inconvenience in operation and difficult interfaces to understand and integrate, which increases development and maintenance costs and affects the scalability and stability of the system.

Method used

By scanning all routing configuration files in the system, extracting the target parameters of the original route, and routing conversion according to the RESTful specification to obtain specification parameters. Then, the standard route is modified according to the user's modification instructions, a modified route is generated, and configured into the system, so that the user can access the original route according to the modified route.

Benefits of technology

It realizes unified and standardized management of system routing, opens user modification ports, facilitates modifying routes according to actual needs, ensures the standardization of the system's external routing interface and operation convenience, and improves the scalability and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631652B_ABST
    Figure CN118631652B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for configuring system routes, including: extracting target parameters of each original route, and performing route conversion on the target parameters according to specified standard standards to obtain standard parameters; obtaining standard routes with unified format according to standard parameters, and modifying the standard routes according to user modification instructions to obtain modified routes; and configuring the system routes according to the modified routes, so that users can access the original routes according to the configured modified routes. By uniformly and standardizedly managing the routes in the system and opening user modification ports, it is convenient for users to modify the routes with unified format according to actual needs, and the modified routes with unified format and meeting actual needs are configured in the system, thereby ensuring the standardization of the system's external routing interface and the convenience of operation, and improving the scalability and stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a system routing configuration method, device, equipment and storage medium. Background Art

[0002] Currently, the routing configurations of many old systems are usually configured arbitrarily according to scenario requirements, which leads to chaotic routing management and difficulty in unified maintenance. In addition, the routing rules of these systems often lack unified specifications, inconsistent naming, confusing paths, and complex parameter transmission, resulting in many problems when exposing interfaces to the outside world.

[0003] Due to the routing configuration method in the prior art, users face inconvenient operation, difficult to understand interfaces and difficult integration during use, which not only increases the cost of development and maintenance, but also seriously affects the scalability and stability of the system. Summary of the invention

[0004] The invention provides a method for configuring system routing, so as to realize the configuration of system routing.

[0005] According to a first aspect of the present invention, there is provided a method for configuring system routing, comprising: scanning all routing configuration files in the system to obtain original routing in the system;

[0006] Extracting target parameters of each of the original routes, and performing route conversion on the target parameters according to a specified standard to obtain standard parameters;

[0007] Acquire a standard route with a unified format according to the standard parameters, and modify the standard route according to the user's modification instruction to obtain a modified route;

[0008] The system is configured for routing according to the modified routing, so that the user can access the original routing according to the configured modified routing.

[0009] According to another aspect of the present invention, there is provided a system routing configuration device, comprising: a configuration file scanning module, configured to scan all routing configuration files in the system to obtain original routing in the system;

[0010] A standard parameter acquisition module, used for extracting target parameters of each of the original routes, and performing route conversion on the target parameters according to a specified standard to obtain standard parameters;

[0011] A route modification module, used to obtain a standard route with a unified format according to the standard parameters, and to modify the standard route according to the user's modification instruction to obtain a modified route;

[0012] The routing configuration module is used to perform routing configuration on the system according to the modified routing, so that the user can access the original routing according to the configured modified routing.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method described in any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention converts all the original routes scanned in the system according to the standard to obtain the standard routes, thereby uniformly and standardizedly managing the routes in the system, and opens a user modification port to facilitate the user to modify the routes with a unified format according to actual needs, and configures the modified routes with a unified format that meet actual needs in the system, thereby ensuring the standardization of the system's external routing interface and the convenience of operation, and improving the scalability and stability of the system.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 is a flow chart of a method for configuring system routing according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a method for configuring system routing according to Embodiment 2 of the present invention;

[0023] Figure 3 is a schematic diagram of the structure of a system routing configuration device provided according to Embodiment 3 of the present invention;

[0024] Figure 4 It is a schematic diagram of the structure of an electronic device provided by Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment 1

[0028] Figure 1 A flowchart of a method for configuring a system route is provided for the first embodiment of the present invention. This embodiment is applicable to the case of configuring a system route. The method can be executed by a system route configuration device, which can be implemented in the form of hardware and / or software. Figure 1 As shown, the method includes:

[0029] Step S101, scanning all routing configuration files in the system to obtain the original routing in the system.

[0030] Optionally, the method further includes: scanning all routing configuration files in the system to obtain page details corresponding to each original route, wherein the page details include a page name, a request method, and parameters.

[0031] Specifically, in this embodiment, all configuration files in the system will be scanned to obtain the original routes in the system, and the system generally contains multiple configuration files, and each configuration file usually contains multiple original routes. In this embodiment, the number of configuration files contained in the system and the number of original routes contained in each configuration file are not limited. In addition, the original routes may be configured by different technicians according to different specifications and standards, so the format of each original route may not be uniform. In addition, the configuration file also includes the page details corresponding to each original route, and the page details mainly include relevant information such as page name, request method and parameters. In this embodiment, the specific content contained in the page details is not limited, and one original route corresponds to one page detail. Therefore, by scanning the configuration file, all the original routes in the system can be obtained, and the page details corresponding to each original route can also be obtained.

[0032] It should be noted that after scanning and obtaining the relevant information of the original route, the relevant information of the original route will also be stored in the designated storage space. For example, the obtained original route and the corresponding page details are saved in the memory 1. Of course, this implementation is only an example and does not limit the specific location where the relevant information of the original route is stored. As long as it can facilitate subsequent queries, it is within the scope of protection of this application.

[0033] Step S102: extracting target parameters of each original route, and performing route conversion on the target parameters according to a specified standard to obtain standard parameters.

[0034] Optionally, extract the target parameters of each original route, and perform routing conversion on the target parameters according to specified specification standards to obtain specification parameters, including: extracting the target parameters from the original route and page details using natural language processing, wherein the target parameters include routing entities and routing relationships; determining specified specification standards, wherein the specified specification standards include RESTful specifications; and performing routing conversion on routing entities and routing relationships using RESTful specifications to obtain specification routing entities and specification routing relationships.

[0035] Specifically, in this embodiment, when the route needs to be configured, the original route and the page details corresponding to the original route are read from the memory 1, and the target parameters are extracted from the original route and the page details using natural language processing (NLP). The target parameters may specifically include route entities and route relationships, wherein the route entity may be a resource name or an operation type, etc., and the route relationship may include a hierarchical relationship or a dependency relationship, etc. Of course, this embodiment is only an example and does not limit the specific content of the extracted target parameters.

[0036] Among them, in this embodiment, after obtaining the target parameters of each original route, the target parameters will be routed according to the specified standard to obtain the standard parameters, wherein the standard adopted in this embodiment is specifically the RESTful standard, which is an architectural style for building web services, emphasizing resource-centricity and operating through standard HTTP methods. The specific principles of the RESTful standard are not the focus of this application, so they will not be repeated in this embodiment. In this embodiment, the routing rules defined by the RESTful specification will be obtained, and the routing rules defined in the RESTful specification will be used to perform routing conversion on the routing entities and routing relationships to obtain the standard routing entities and standard routing relationships, and the standard routing entities and standard routing relationships will be used as standard parameters. Since a unified routing rule is used during the conversion, the target parameters of each original route have a unified format through the standard parameters obtained by conversion. Of course, this implementation is only to obtain the canonical routing entity and the canonical routing relationship as an example for explanation, and in actual applications, other types of canonical parameters can also be obtained according to actual needs, and there are corresponding conversion methods for different target parameters in the RESTful specification. This implementation does not limit the specific conversion method of each target parameter. As long as the canonical parameters obtained by conversion meet the specified standard, they are all within the protection scope of this application.

[0037] Step S103, obtaining a standard route with a unified format according to the standard parameters, and modifying the standard route according to the user's modification instruction to obtain a modified route.

[0038] Optionally, the canonical route is modified according to the user's modification instructions to obtain the modified route, including: displaying the canonical route on a visualization page; receiving the user's modification instructions on the visualization page, and modifying the path, request method and parameters of the canonical route according to the modification instructions to obtain the modified route.

[0039] Optionally, after the canonical route is modified according to the user's modification instruction to obtain the modified route, the method further includes: establishing a mapping relationship between the modified route and the corresponding original route; and saving the mapping relationship in a designated storage space.

[0040] Specifically, in this implementation, after obtaining the canonical parameters corresponding to each original route, the canonical parameters will be assembled in a specified manner to obtain a canonical route with a unified format, and the newly generated canonical route includes standard RESTful route canonical operations, such as create, read, update and delete, etc. Of course, this implementation is only an example for illustration, and does not limit the specific content contained in the generated canonical route.

[0041] It should be noted that, in this embodiment, after obtaining the canonical route, sometimes there is a user who needs to modify the relevant parameters in the canonical route according to the actual routing situation to meet the actual routing scenario of the system, so as to ensure the extensive application of the canonical route. In view of the above user needs, in this embodiment, after generating the canonical route, the relevant content of the canonical route will be editably displayed on the visual page, and there will be a route modification port on the visual page, such as a modification button, etc. Of course, this embodiment is only an example, and the specific type of the modification port is not limited. When the user triggers the modification port, the modification instruction can be sent through the modification port, and the terminal modifies the canonical route that can be edited and displayed according to the modification instruction to obtain the modified route. And when the user modifies the canonical route, it can be specifically modified to modify the path, request method and parameters in the canonical route that can be edited and displayed. Of course, this embodiment is only an example, and the specific content in the canonical route is not limited. As long as it does not affect the normal use of the canonical route and complies with the RESTful specification, it is within the protection scope of this application.

[0042] It is worth mentioning that in this embodiment, after obtaining the modified route, a mapping relationship between the modified route and the original route before conversion is established, and the mapping relationship is saved in a designated storage space, such as memory 2. The reason for establishing a mapping relationship between the modified route and the original route is that although the modified route is user-oriented with a unified format, the system is still based on the original route when performing actual routing. Therefore, the system side needs to determine the original route actually accessed based on the mapping relationship to ensure the success of the route access. The following Table 1 shows an example of the mapping relationship stored in memory 2:

[0043] Table 1

[0044] Serial number Original route Modify the route 1 x X 2 y Y … … …

[0045] In particular, due to space limitations, Table 1 only uses two groups of route mappings as an example for illustration, and the specific content of the mappings stored in the memory 2 is not limited in this implementation.

[0046] Step S104, configuring the system according to the modified route, so that the user can access the original route according to the configured modified route.

[0047] Optionally, the system is configured with routing according to the modified routing so that the user can access the original routing according to the configured modified routing, including: configuring the modified routing as the system's external interface routing; receiving external access requests from the user side through the modified routing, and determining the target original routing corresponding to the modified routing for receiving the external access request according to a mapping relationship; and accessing the target original routing according to the external access request.

[0048] Specifically, in this embodiment, after obtaining a modified route with a unified format and meeting user needs, the system will be configured according to the modified route. When configuring, the modified route is specifically configured as the system's external interface route, so that the external interface route in the system follows the same specification standard, which is convenient for subsequent unified management, thereby significantly reducing the cost of development and maintenance and improving the scalability and stability of the system. Since the original route is still needed when performing actual routing, when an external access request from the user is received through the modified route, the system will determine the target original route corresponding to the modified route that receives the external access request based on the mapping relationship created previously, so as to access the target original route according to the external access request.

[0049] For example, when an external access request is received by modifying route Y, the system will query the mapping relationship shown in Table 1 stored in the memory 2, and determine that the target original route corresponding to the modified route Y is y by looking up the table. At this time, the external request can be forwarded to the target original route y and processed by the target original route y. Of course, this embodiment is only an example, and the access method for other original routes is roughly the same, and will not be repeated in this embodiment.

[0050] In the implementation mode of the present application, all the original routes scanned in the system are converted according to the standard to obtain the standard routes, so as to uniformly and standardizedly manage the routes in the system, and open the user modification port to facilitate the user to modify the routes with a unified format according to actual needs, and configure the modified routes with a unified format that meet the actual needs, thereby ensuring the standardization of the system's external routing interface and the convenience of operation, and improving the scalability and stability of the system.

[0051] Embodiment 2

[0052] Figure 2 This is a flowchart of a method for configuring system routing provided by the second embodiment of the present invention. This embodiment is based on the above embodiment. After configuring the system routing according to the modified routing so that the user can access the original routing according to the configured modified routing, it also includes: feeding back the response result generated by the original routing to the user end through the modified routing; and correcting the modified routing according to the response result. Figure 2As shown, the method includes:

[0053] Step S201, scanning all routing configuration files in the system to obtain the original routing in the system.

[0054] Optionally, the method further includes: scanning all routing configuration files in the system to obtain page details corresponding to each original route, wherein the page details include a page name, a request method, and parameters.

[0055] Step S202: extracting target parameters of each original route, and performing route conversion on the target parameters according to a specified standard to obtain standard parameters.

[0056] Optionally, extract the target parameters of each original route, and perform routing conversion on the target parameters according to specified specification standards to obtain specification parameters, including: extracting the target parameters from the original route and page details using natural language processing, wherein the target parameters include routing entities and routing relationships; determining specified specification standards, wherein the specified specification standards include RESTful specifications; and performing routing conversion on routing entities and routing relationships using RESTful specifications to obtain specification routing entities and specification routing relationships.

[0057] Step S203: acquiring a standard route with a unified format according to the standard parameters, and modifying the standard route according to the user's modification instruction to obtain a modified route.

[0058] Optionally, the canonical route is modified according to the user's modification instructions to obtain the modified route, including: displaying the canonical route on a visualization page; receiving the user's modification instructions on the visualization page, and modifying the path, request method and parameters of the canonical route according to the modification instructions to obtain the modified route.

[0059] Optionally, after the canonical route is modified according to the user's modification instruction to obtain the modified route, the method further includes: establishing a mapping relationship between the modified route and the corresponding original route; and saving the mapping relationship in a designated storage space.

[0060] Step S204, configuring the system according to the modified route, so that the user can access the original route according to the configured modified route.

[0061] Optionally, the system is configured with routing according to the modified routing so that the user can access the original routing according to the configured modified routing, including: configuring the modified routing as the system's external interface routing; receiving external access requests from the user side through the modified routing, and determining the target original routing corresponding to the modified routing for receiving the external access request according to a mapping relationship; and accessing the target original routing according to the external access request.

[0062] Step S205: Feedback the response result generated by the original route to the user terminal through the modified route, and correct the modified route according to the response result.

[0063] Among them, in this embodiment, after the external access request is forwarded to the corresponding original route for processing by modifying the route, the system will also feed back the generated response result to the user end, that is, the external requester, and the user end will analyze and score the response result, and send the route scoring result to the system side. At this time, after the system side receives the route scoring result, when it is determined that the scoring result is less than the specified threshold, it will correct the modified route. Among them, when the scoring result is less than the specified threshold, it means that the modified route currently generated is not the best route, and the parameters in the modified route need to be corrected, so the system will start the automatic correction function. Among them, in this embodiment, the range of correction of each parameter and the correction method corresponding to different scoring results are pre-set in the system, so the system will automatically correct the parameters in the modified route according to the obtained scoring results.

[0064] It should be noted that in this embodiment, after the correction route is obtained through parameter correction, the response result corresponding to the correction route will be obtained again. When the obtained response result is still not ideal, it means that the automatic correction of the system cannot meet the routing requirements. It may be that the device hardware has processed a fault. At this time, an alarm message will be generated and the alarm message will be prompted in a specified manner, for example, by language prompts or by image prompts. Of course, this embodiment is only an example for illustration, and does not limit the prompt method used by the alarm message. As long as it can serve as a prompt to the user, it is within the protection scope of this application.

[0065] Specifically, in this implementation, standardized routing management is performed, and chaotic, inconsistent old routes are converted into routes that comply with the RESTful specification, the naming rules and path structure are unified, and the readability and maintainability of the system are improved; the user experience is improved, and the standardized RESTful routing makes it easier for external developers to understand and use the interface, reducing the learning cost and difficulty of use, and improving the user experience; the system scalability is enhanced, and by dynamically generating and managing routes, the system can more conveniently add new functions or modify existing functions, thereby improving the scalability of the system; it is flexible and customizable, and provides a user interface to modify the generated routes, making the routing configuration more flexible, and users can adjust and optimize according to actual needs; dynamic management and immediate effectiveness, by reading the latest routing configuration, the routing can be dynamically managed and take effect immediately, without restarting the server or performing complex deployment operations.

[0066] In the implementation mode of the present application, all the original routes scanned in the system are converted according to the standard to obtain the standard routes, so as to uniformly and standardizedly manage the routes in the system, and open the user modification port to facilitate the user to modify the routes with a unified format according to actual needs, and configure the modified routes with a unified format that meet the actual needs, thereby ensuring the standardization of the system's external routing interface and the convenience of operation, and improving the scalability and stability of the system.

[0067] Embodiment 3

[0068] Figure 3 This is a schematic diagram of the structure of a system routing configuration device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a configuration file scanning module 310, a specification parameter acquisition module 320, a route modification module 330 and a route configuration module 340.

[0069] The configuration file scanning module 310 is used to scan all routing configuration files in the system to obtain the original routing in the system;

[0070] The standard parameter acquisition module 320 is used to extract the target parameters of each original route and perform route conversion on the target parameters according to the specified standard to obtain the standard parameters;

[0071] The route modification module 330 is used to obtain a standard route with a unified format according to the standard parameters, and to modify the standard route according to the user's modification instruction to obtain a modified route;

[0072] The route configuration module 340 is used to perform route configuration on the system according to the modified route, so that the user can access the original route according to the configured modified route.

[0073] Optionally, the configuration file scanning module is also used to scan all routing configuration files in the system to obtain page details corresponding to each original route, wherein the page details include page name, request method and parameters.

[0074] Optionally, a canonical parameter acquisition module is used to extract target parameters from the original route and page details using a natural language processing method, wherein the target parameters include route entities and route relationships;

[0075] Determine the designated specification standards, wherein the designated specification standards include RESTful specifications;

[0076] The RESTful specification is used to perform routing conversion on routing entities and routing relationships to obtain standard routing entities and standard routing relationships.

[0077] Optional, route modification module, used to display the standard route on the visualization page;

[0078] The user's modification instruction is received on the visualization page, and the path, request method and parameters of the standard route are modified according to the modification instruction to obtain the modified route.

[0079] Optionally, the device further includes a mapping relationship establishing module, which is used to establish a mapping relationship between the modified route and the corresponding original route;

[0080] The mapping relationship is saved in the specified storage space.

[0081] Optionally, a routing configuration module is used to configure the modified route as the external interface route of the system;

[0082] Receiving an external access request from a user terminal by modifying the route, and determining a target original route corresponding to the modified route for receiving the external access request according to a mapping relationship;

[0083] Access the target original route based on the external access request.

[0084] Optionally, the device further includes a route correction module, which is used to feed back the response result generated by the original route to the user terminal by modifying the route;

[0085] Correct the modified route based on the response result.

[0086] The system routing configuration device provided in the embodiment of the present invention can execute the system routing configuration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0087] Embodiment 4

[0088] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0089] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0090] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0091] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a configuration method for system routing.

[0092] In some embodiments, the method for configuring system routing may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for configuring system routing described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for configuring system routing in any other appropriate manner (e.g., by means of firmware).

[0093] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0094] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0095] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0096] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0097] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0098] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0099] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0100] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for configuring system routing, characterized in that: include: Scan all routing configuration files in the system to obtain the original routing in the system; Extracting target parameters of each of the original routes, and performing route conversion on the target parameters according to a specified standard to obtain standard parameters; Acquire a standard route with a unified format according to the standard parameters, and modify the standard route according to the user's modification instruction to obtain a modified route; Performing route configuration on the system according to the modified route, so that the user can access the original route according to the configured modified route; Scan all the routing configuration files in the system to obtain page details corresponding to each of the original routes, wherein the page details include page name, request method and parameters; The extracting the target parameters of each of the original routes includes: extracting the target parameters from the original routes and the page details using a natural language processing method, wherein the target parameters include route entities and route relationships.

2. The method according to claim 1, characterized in that The step of performing routing conversion on the target parameter according to the specified specification standard to obtain the specification parameter includes: Determine a specified specification standard, wherein the specified specification standard includes a RESTful specification; The routing entity and the routing relationship are routed using the RESTful specification to obtain a standard routing entity and a standard routing relationship.

3. The method according to claim 1, characterized in that The step of modifying the standard route according to the modification instruction of the user to obtain the modified route includes: Displaying the standard route on a visualization page; A modification instruction from a user is received on the visualization page, and the path, request method and parameters of the standard route are modified according to the modification instruction to obtain the modified route.

4. The method according to claim 1, characterized in that After the standard route is modified according to the modification instruction of the user to obtain the modified route, the method further includes: Establishing a mapping relationship between the modified route and the corresponding original route; The mapping relationship is saved in a designated storage space.

5. The method according to claim 4, characterized in that The step of configuring the system according to the modified route so that the user can access the original route according to the configured modified route includes: Configuring the modified route as the external interface route of the system; Receiving an external access request from a user terminal through the modified route, and determining a target original route corresponding to the modified route for receiving the external access request according to the mapping relationship; The target original route is accessed according to the external access request.

6. The method according to claim 1, characterized in that After configuring the system according to the modified route so that the user can access the original route according to the configured modified route, the method further includes: Feedback the response result generated by the original route to the user terminal through the modified route; The modified route is corrected according to the response result.

7. A system routing configuration device, characterized in that: include: Configuration file scanning module, used to scan all routing configuration files in the system to obtain the original routing in the system; A standard parameter acquisition module, used for extracting target parameters of each of the original routes, and performing route conversion on the target parameters according to a specified standard to obtain standard parameters; A route modification module, used to obtain a standard route with a unified format according to the standard parameters, and to modify the standard route according to the user's modification instruction to obtain a modified route; A routing configuration module, used for performing routing configuration on the system according to the modified routing, so that the user can access the original routing according to the configured modified routing; The configuration file scanning module is also used to scan all routing configuration files in the system to obtain page details corresponding to each original route, wherein the page details include page name, request method and parameters; The canonical parameter acquisition module is used to extract target parameters from the original route and page details using natural language processing, wherein the target parameters include route entities and route relationships.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • Interface data receiving method and device, electronic equipment and readable storage medium

    CN116204406A

  • Processing method and device based on authentication routing rule, equipment and medium

    CN116455652A