CN114237747A - Application program interface gateway configuration method and device, terminal equipment and storage medium - Google Patents

Application program interface gateway configuration method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114237747A
CN114237747A CN202111549861.1A CN202111549861A CN114237747A CN 114237747 A CN114237747 A CN 114237747A CN 202111549861 A CN202111549861 A CN 202111549861A CN 114237747 A CN114237747 A CN 114237747A
Authority
CN
China
Prior art keywords
application program
gateway
configuration
program interface
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111549861.1A
Other languages
Chinese (zh)
Inventor
张振兴
张惠成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202111549861.1A priority Critical patent/CN114237747A/en
Publication of CN114237747A publication Critical patent/CN114237747A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Data Mining & Analysis (AREA)
  • Stored Programmes (AREA)

Abstract

The application is applicable to the technical field of cloud, and provides an application program interface gateway configuration method, an application program interface gateway configuration device, terminal equipment and a storage medium, wherein the application program interface gateway is configured in response to gateway configuration operation by detecting gateway configuration operation of a user for a management page, so that the user can configure the application program interface gateway by adopting the management page of one application program interface gateway, the management page can be operated without knowing network protocol knowledge and basic logic of the gateway, and the technical level requirement on the user is reduced; after the application program interface gateway configuration is completed, the configuration data of the application program interface gateway is subjected to hot loading through the cache without restarting the application program interface gateway, so that a user does not need to face the condition that the service is unavailable, a large amount of deployment time is saved for operation, maintenance and development of the application program interface gateway, deployment and rollback costs are reduced, and the method is suitable for non-technical personnel or users with low technical level.

Description

Application program interface gateway configuration method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of cloud technologies, and in particular, to a method and an apparatus for configuring an application program interface gateway, a terminal device, and a storage medium.
Background
An Application Programming Interface (API) Gateway (Gateway) plays an indispensable role in microservice, providing not only a uniform routing manner, but also basic functions of the Gateway, such as security, monitoring, embedding, current limiting, etc., in a Filter chain-based manner.
In the Spring Cloud ecology, the position of the Spring Cloud Gateway replaces the API Gateway selection of Zuul as the main stream, the technology development is based on Spring5.0, Spring boot2.0, Project reader and the like, and the aim of providing a simple, effective and uniform API route management mode and a uniform access interface for the micro-service architecture is achieved. Compared with Netflix Zuul, the method is based on a response development mode of Nttey, and the throughput and concurrency performance are stronger.
At present, the common configuration scheme of the API gateway generally has the defects that centralized configuration management is easy to make mistakes, the API gateway application needs to be restarted and professional operation is needed for each modification, and the common configuration scheme of the API gateway is not suitable for popularization and training.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for configuring an application program interface gateway, a terminal device, and a storage medium, so as to solve the problems that centralized configuration management is prone to errors, API gateway application needs to be restarted and professional operation is needed for each modification, and the API gateway configuration scheme is not suitable for popularization and training.
A first aspect of an embodiment of the present application provides an application program interface gateway configuration method, including:
detecting gateway configuration operation of a user aiming at a management page;
configuring an application program interface gateway in response to the gateway configuration operation;
and after the configuration of the application program interface gateway is completed, carrying out hot loading on the configuration data of the application program interface gateway through a cache.
A second aspect of an embodiment of the present application provides an application program interface gateway configuration apparatus, including:
the configuration operation detection unit is used for detecting gateway configuration operation of a user aiming at the management page;
a gateway configuration unit, configured to respond to the gateway configuration operation and configure an application program interface gateway;
and the hot loading unit is used for carrying out hot loading on the configuration data of the application program interface gateway through a cache after the configuration of the application program interface gateway is completed.
A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the terminal device, where the processor implements the steps of the method for configuring an api gateway provided in the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the method for configuring an application program interface gateway provided in the first aspect.
According to the application program interface gateway configuration method provided by the first aspect of the embodiment of the application, the gateway configuration operation of a user for a management page is detected, the gateway configuration operation is responded, and the application program interface gateway is configured, so that the user can configure the application program interface gateway by using the management page of the application program interface gateway, the management page can be operated without knowing network protocol knowledge and basic logic of the gateway, and the technical level requirement on the user is reduced; after the application program interface gateway configuration is completed, the configuration data of the application program interface gateway is subjected to hot loading through the cache without restarting the application program interface gateway, so that a user does not need to face the condition that the service is unavailable, a large amount of deployment time is saved for operation, maintenance and development of the application program interface gateway, deployment and rollback costs are reduced, and the method is particularly suitable for non-technical personnel or users with low technical level.
It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a first flowchart illustrating an application program interface gateway configuration method according to an embodiment of the present application;
fig. 2 is a second flowchart illustrating an application program interface gateway configuration method according to an embodiment of the present application;
fig. 3 is a third flowchart illustrating an application program interface gateway configuration method according to an embodiment of the present application;
fig. 4 is a fourth flowchart illustrating an application program interface gateway configuration method according to an embodiment of the present application;
fig. 5 is a fifth flowchart illustrating an application program interface gateway configuration method according to an embodiment of the present application;
fig. 6 is a sixth flowchart illustrating an application program interface gateway configuration method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an application program interface gateway configuration apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The embodiment of the application provides an application program interface gateway configuration method, which can be executed by a processor of a terminal device when running a corresponding computer program, so that a user can configure the application program interface gateway by adopting a management page of the application program interface gateway, the management page can be operated without knowing network protocol knowledge and basic logic of the gateway, and the technical level requirement on the user is reduced; after the application program interface gateway configuration is completed, the configuration data of the application program interface gateway is subjected to hot loading through the cache without restarting the application program interface gateway, so that a user does not need to face the condition that the service is unavailable, a large amount of deployment time is saved for operation, maintenance and development of the application program interface gateway, deployment and rollback costs are reduced, and the method is particularly suitable for non-technical personnel or users with low technical level.
In application, the terminal device may be a computing device capable of implementing a data processing function, such as a (cloud) server, a desktop computer, a notebook computer, a netbook, a Personal Digital Assistant (PDA), and a mobile phone.
As shown in fig. 1, in an embodiment, the method for configuring an application program interface gateway provided in the embodiment of the present application includes the following steps S101 to S103:
and step S101, detecting the gateway configuration operation of a user aiming at the management page.
In the application, a management page specially used for configuring the configuration data of the API gateway can be established in advance, so that a user can configure the API gateway by operating the management page. The gateway configuration operation may specifically be a human-computer interaction operation, which may be a mouse operation based on mouse input or a touch operation based on touch sensor input, for example, a click operation (a single click operation or a continuous click operation), a pull-down selection operation, a drag operation, a sliding operation, and the like. The operation realized based on the continuous operation behaviors of the user, such as continuous click operation, pull-down selection operation, dragging operation, sliding operation and the like, is adopted, the fault tolerance is higher, the misoperation of the user can be effectively prevented, and the accuracy of the operation is improved.
In application, human-computer interaction operation can be realized based on a keyboard, an entity key, a gesture recognition sensor, a voice recognition device and the like, so that a user can input an instruction through a corresponding touch control mode, a gesture control mode or a voice control mode. The touch manner of the physical key may be pressing or toggling. The gesture and voice for controlling the terminal equipment can be set by a user in advance according to actual needs through a man-machine interaction device of the terminal equipment in a user-defined mode or default setting in factory leaving is adopted. The voice recognition device may include a microphone and a voice recognition chip, or may include only a microphone and implement a voice recognition function by a processor of the terminal device.
In an application, the user may be an administrator or a configurator of the API gateway.
And step S102, responding to the gateway configuration operation, and configuring an application program interface gateway.
In the application, after detecting the gateway configuration operation executed by the user for the management page, the terminal device may respond to the gateway configuration operation and configure the API gateway according to the configuration data input or selected by the user operation management page.
Step S103, after the configuration of the application program interface gateway is completed, the configuration data of the application program interface gateway is subjected to hot loading through a cache.
In the application, after the user operates the management page to complete the input or selection of the configuration data of the API gateway, the terminal device performs hot loading on all the configuration data input or selected by the user through the cache, so that the configuration data is updated under the condition that the application of the API gateway is not restarted.
In one embodiment, step S103 includes:
and carrying out hot loading on the configuration data of the application program interface gateway through a remote dictionary service cache.
In the application, the configuration data can be hot loaded through a remote dictionary service (Redis) cache provided by a remote dictionary server, and after the configuration of the API gateway is completed, the configuration data is refreshed to the Redis cache to load the core of the API gateway.
As shown in fig. 2, in one embodiment, step S101 is preceded by steps S201 to S205 as follows:
step S201, establishing a background management system;
step S202, detecting menu adding operation of a user aiming at a management page of the background management system;
step S203, responding to the menu adding operation, and adding a menu on the management page;
step S204, detecting the menu item adding operation of the user aiming at the management page;
and step S205, responding to the menu item adding operation, adding menu items in the menu, wherein the menu items comprise routing management, filter management, provider management, tenant management and application program interface management.
In the application, the user can also be a developer of the API gateway, and a background management system is developed and established by the developer in advance, and the background management system is used for providing a management page for the use of a manager and a configurator. After a background management system and a management page thereof are established, a developer operates the management page to add menus one by one or in batches in the management page, then operates the menus displayed in the management page, and adds specific menu items in the menus one by one or in batches, wherein the menu items comprise but are not limited to routing management, filter management, provider management, tenant management, API management and the like. It is also possible to add both the menu and the menu item to the management page after the menu and menu item settings are completed. The tenant is a user who distinguishes different interfaces from the service level, and each consumer who needs to use an open api (open api) is a tenant.
As shown in fig. 3, in one embodiment, before step S204, the following steps S301 and S302 are included:
s301, detecting a data table establishing operation of a user for a management page;
step S302, responding to the data table establishing operation, establishing a routing table, a filter table, a provider table, a tenant table and an application program interface table in a database, and establishing at least one incidence relation table in the database, wherein the incidence relation table is used for recording incidence relations among any two or more of a route, a filter, a provider, a tenant and an application program interface.
In an application, before adding a specific menu item in a menu of a management page, a developer needs to operate the management page in advance to access a database so as to establish a table corresponding to each menu item in the database, for example, a routing table, a filter table, a provider table, a tenant table, an API table, and the like, where the tables are used for recording configuration data of the corresponding menu item. For any two or more objects having an association relationship with each other, a table for representing the association relationship between the associated objects may also be established, that is, an association relationship table, for example, if a route may define a plurality of filters, a route-filter table for representing the association relationship between a router and the plurality of filters may be established.
In application, when a developer establishes a filter table, the developer can provide a plurality of different general filter functions for subsequent managers or configurators to freely select when operating a configuration page to configure configuration data of the API gateway. In general, if different message protocol conversions are involved, e.g., going from soap to json, a special filter is needed.
In application, the association Table may be a mapping Table, and may specifically exist in a form that a corresponding lookup result can be searched and output by displaying a lookup Table (Look-Up-Table, LUT) or other input data.
In one embodiment, before step S101, the following steps are included:
detecting login operation of a user for a login interface;
responding to the login operation, and verifying the login information of the user;
and entering the management page after the login information passes the verification.
In the application, a user can operate the login interface in advance to register and set login information, before entering the management page, the user needs to operate the login interface to input the login information, and after the login information passes the verification, the user can enter the management page. The login information may include a user name and a password which are custom-set by the user at the time of registration, wherein at least one of the user name and the password has uniqueness so as to distinguish different users and improve the security of page access.
As shown in fig. 4, in an embodiment, the method for configuring an application program interface gateway further includes the following steps S401 and S402:
step S401, detecting authority management operation of a user aiming at a management page;
and S402, responding to the authority management operation and setting the access authority of the management page.
In the application, a manager has management authority for registration, approval, password resetting, key management and the like of the management page so as to manage access authority when a configurator accesses the management page. Steps S401 and S402 may be performed at any time the user desires after the management page is created, and steps S401 and S402 are exemplarily shown in fig. 4 to be performed before step S101.
As shown in fig. 5, in one embodiment, step S103 includes the following steps S501 and S502:
step S501, after the application program interface gateway configuration is completed, detecting the confirmation and release operation of a user for a management page;
step S502, responding to the confirmation issuing operation, and performing hot loading on the configuration data of the application program interface gateway through a cache.
In the application, an icon, a virtual button or an option for a user to confirm the configuration of the publishing gateway is displayed on a management page, after the user completes the configuration of the API gateway by operating the management page, the user can confirm the configuration parameters of the publishing API gateway by operating the icon, the virtual button or the function option to trigger the cache to carry out hot loading on the configuration data of the API gateway, so that the configuration data of the API gateway cannot be automatically loaded into the cache, and the user needs to independently select proper configuration data for publishing, thereby meeting the personalized configuration requirements of the user and improving the fault tolerance.
As shown in fig. 6, in one embodiment, step S102 is followed by steps S601 and S602:
step S601, after the application program interface gateway configuration is completed, detecting the configuration editing operation of a user aiming at a management page;
step S602, in response to the configuration editing operation, editing the configuration data of the application program interface gateway.
In the application, after the configuration of the API gateway is completed, the user may further perform an editing operation on the configuration data of the custom setting through the operation management page, where the editing operation includes, but is not limited to, saving, cancelling, deleting, adding, and the like. The management page may display corresponding icons, virtual buttons, or options for the user to perform corresponding editing operations. Steps S601 and S602 may be performed at any time after step S102, as desired by the user, and steps S601 and S602 are exemplarily shown in fig. 6 to be performed after step S103.
In the application, user operations such as menu adding operation, menu item adding operation, data table establishing operation, login operation, authority management operation, confirmation issuing operation, configuration editing operation, and the like may be human-computer interaction operations, and a specific implementation manner thereof is the same as that of the gateway configuration operation, which is referred to the description of the gateway configuration operation, and is not described herein again.
In one embodiment, after step S103, comprising:
and uploading the configuration data to a blockchain.
In application, after the API gateway configuration is completed, the user may also perform an upload operation on the configuration data through the operation management page to upload the configuration data to the block chain, or the terminal device may also automatically upload the configuration data to the block chain to ensure the security of the configuration data and the fair transparency to the user. The user can operate the terminal device to download configuration data from the blockchain in order to verify whether the data has been tampered with. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The embodiment of the application program interface gateway configuration device is further provided, and is used for executing the steps in the application program interface gateway configuration method. The device may be a virtual appliance (virtual application) in the terminal device, which is executed by a processor of the terminal device, or may be the terminal device itself.
As shown in fig. 7, an application program interface gateway configuration apparatus 100 according to an embodiment of the present application includes:
a configuration operation detection unit 101, configured to detect a gateway configuration operation of a user for a management page;
a gateway configuration unit 102, configured to respond to the gateway configuration operation and configure an application program interface gateway;
a hot loading unit 103, configured to perform hot loading on the configuration data of the application program interface gateway through a cache after the configuration of the application program interface gateway is completed.
In one embodiment, the application program interface gateway configuring apparatus further comprises:
the system establishing unit is used for establishing a background management system;
the menu adding operation detection unit is used for detecting menu adding operation of a user for a management page of the background management system;
a menu adding unit, configured to add a menu on the management page in response to the menu adding operation;
a menu item addition operation detection unit configured to detect a menu item addition operation of a user for a management page;
a menu item adding unit for adding menu items in the menu in response to the menu item adding operation, the menu items including route management, filter management, provider management, tenant management, and application program interface management.
In one embodiment, the application program interface gateway configuring apparatus further comprises:
the data table establishing operation detection unit is used for detecting the data table establishing operation of a user aiming at the management page;
and the data table establishing unit is used for establishing a routing table, a filter table, a provider table, a tenant table and an application program interface table in the database and establishing at least one incidence relation table in the database in response to the data table establishing operation, wherein the incidence relation table is used for recording incidence relations among any two or more of the routing table, the filter table, the provider table, the tenant table and the application program interface table.
In one embodiment, the application program interface gateway configuring apparatus further comprises:
the login operation detection unit is used for detecting the login operation of a user aiming at the login interface;
a login authentication unit to:
responding to the login operation, and verifying the login information of the user;
and entering the management page after the login information passes the verification.
In one embodiment, the application program interface gateway configuring apparatus further comprises:
the authority management operation detection unit is used for detecting authority management operation of a user aiming at the management page;
and the authority management unit is used for responding to the authority management operation and setting the access authority of the management page.
In one embodiment, the application program interface gateway configuring apparatus further comprises:
the configuration editing operation detection unit is used for detecting the configuration editing operation of a user for the management page after the configuration of the application program interface gateway is completed;
and the configuration editing unit is used for responding to the configuration editing operation and editing the configuration data of the application program interface gateway.
In one embodiment, the application program interface gateway configuring apparatus further comprises:
and the uploading unit is used for uploading the configuration data to the block chain.
In application, each unit in the application program interface gateway configuration apparatus may be a software program unit, may also be implemented by different logic circuits integrated in a processor or an independent physical component connected with the processor, and may also be implemented by a plurality of distributed processors.
As shown in fig. 8, an embodiment of the present application further provides a terminal device 200, including: at least one processor 201 (only one processor is shown in fig. 8), a memory 202, and a computer program 203 stored in the memory 202 and operable on the at least one processor 201, the steps in the various embodiments of the api gateway configuration method described above being implemented when the computer program 203 is executed by the processor 201.
In application, the terminal device may include, but is not limited to, a processor and a memory, fig. 8 is only an example of the terminal device, and does not constitute a limitation to the terminal device, and may include more or less components than those shown, or combine some components, or different components, for example, an input and output device, a network access device, and the like, and may further include an input and output device that may include the above-mentioned human interaction device, a communication module, a display screen, and the like.
In an Application, the Processor may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In some embodiments, the storage may be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory may also be an external storage device of the terminal device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device. The memory may also include both internal and external storage units of the terminal device. The memory is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of computer programs. The memory may also be used to temporarily store data that has been output or is to be output.
In application, the Display screen may be a Thin Film Transistor Liquid Crystal Display (TFT-LCD), a Liquid Crystal Display (LCD), an Organic electroluminescent Display (OLED), a Quantum Dot Light Emitting diode (QLED) Display screen, a seven-segment or eight-segment digital tube, and the like.
In application, the Communication module may provide a solution for Communication applied to the network device, including Wireless Local Area Networks (WLANs) (such as Wi-Fi Networks), bluetooth, Zigbee, mobile Communication Networks, Global Navigation Satellite Systems (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The communication module may include an antenna, and the antenna may have only one array element, or may be an antenna array including a plurality of array elements. The communication module can receive electromagnetic waves through the antenna, frequency-modulate and filter electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive a signal to be sent from the processor, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves through the antenna to radiate the electromagnetic waves.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units is merely illustrated, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the apparatus is divided into different functional units to perform all or part of the above described functions. Each functional unit in the embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application. The specific working process of the units in the system may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method for configuring an api gateway may be implemented.
The embodiments of the present application provide a computer program product, which, when running on a terminal device, enables the terminal device to implement the steps in the foregoing method for configuring an application program interface gateway.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a data acquisition end or client, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier wave signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. An application program interface gateway configuration method, comprising:
detecting gateway configuration operation of a user aiming at a management page;
configuring an application program interface gateway in response to the gateway configuration operation;
and after the configuration of the application program interface gateway is completed, carrying out hot loading on the configuration data of the application program interface gateway through a cache.
2. The method according to claim 1, wherein the hot loading the configuration data of the api gateway through the cache after the api gateway configuration is completed comprises:
after the application program interface gateway configuration is completed, detecting the confirmation and release operation of a user for a management page;
and responding to the confirmation issuing operation, and performing hot loading on the configuration data of the application program interface gateway through a cache.
3. The method of claim 1, wherein the configuring the application program interface gateway in response to the gateway configuration operation comprises:
after the application program interface gateway configuration is completed, detecting the configuration editing operation of a user for a management page;
and responding to the configuration editing operation, and editing the configuration data of the application program interface gateway.
4. The method according to claim 1, wherein the hot loading of the configuration data of the api gateway through the cache comprises:
and carrying out hot loading on the configuration data of the application program interface gateway through a remote dictionary service cache.
5. The method of claim 1, wherein detecting a gateway configuration operation of a user on a management page is preceded by:
detecting login operation of a user for a login interface;
responding to the login operation, and verifying the login information of the user;
and entering the management page after the login information passes the verification.
6. The API gateway configuration method of any one of claims 1 to 5, wherein detecting a gateway configuration operation of a user on a management page is preceded by:
establishing a background management system;
detecting menu adding operation of a user aiming at a management page of the background management system;
adding a menu on the management page in response to the menu adding operation;
detecting a menu item adding operation of a user for a management page;
in response to the menu item addition operation, adding a menu item in the menu, the menu item including route management, filter management, provider management, tenant management, and application program interface management.
7. The API gateway configuration method of claim 6, wherein detecting a user add action to a menu item of a management page comprises:
detecting a data table establishing operation of a user aiming at a management page;
and in response to the data table establishing operation, establishing a routing table, a filter table, a provider table, a tenant table and an application interface table in the database, and establishing at least one incidence relation table in the database, wherein the incidence relation table is used for recording incidence relations among any two or more of the routing table, the filter table, the provider table, the tenant table and the application interface table.
8. An application program interface gateway configuration apparatus, comprising:
the configuration operation detection unit is used for detecting gateway configuration operation of a user aiming at the management page;
a gateway configuration unit, configured to respond to the gateway configuration operation and configure an application program interface gateway;
and the hot loading unit is used for carrying out hot loading on the configuration data of the application program interface gateway through a cache after the configuration of the application program interface gateway is completed.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202111549861.1A 2021-12-17 2021-12-17 Application program interface gateway configuration method and device, terminal equipment and storage medium Pending CN114237747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111549861.1A CN114237747A (en) 2021-12-17 2021-12-17 Application program interface gateway configuration method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111549861.1A CN114237747A (en) 2021-12-17 2021-12-17 Application program interface gateway configuration method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114237747A true CN114237747A (en) 2022-03-25

Family

ID=80757981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111549861.1A Pending CN114237747A (en) 2021-12-17 2021-12-17 Application program interface gateway configuration method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114237747A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2397695A1 (en) * 2002-08-09 2004-02-12 922526 Ontario Limited System, computer product and method for event monitoring with data centre
CN109150616A (en) * 2018-09-03 2019-01-04 成都嗨翻屋科技有限公司 A kind of Intelligent gateway and its working method that can increase https entrance automatically
CN110890991A (en) * 2019-12-17 2020-03-17 睿住科技有限公司 Intelligent home gateway configuration information rapid migration method and device
WO2020211379A1 (en) * 2019-04-16 2020-10-22 平安科技(深圳)有限公司 Web page loading method and apparatus, computer equipment and storage medium
CN111917837A (en) * 2020-07-13 2020-11-10 西安即刻易用网络科技有限公司 Web micro application program publishing system and implementation method thereof
CN112650760A (en) * 2021-01-15 2021-04-13 北京金和网络股份有限公司 Management method and device for caching service data to different addresses
CN113094139A (en) * 2021-04-20 2021-07-09 北京沃东天骏信息技术有限公司 UI style updating method and device
CN113765695A (en) * 2021-03-26 2021-12-07 北京京东拓先科技有限公司 Gateway management method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2397695A1 (en) * 2002-08-09 2004-02-12 922526 Ontario Limited System, computer product and method for event monitoring with data centre
CN109150616A (en) * 2018-09-03 2019-01-04 成都嗨翻屋科技有限公司 A kind of Intelligent gateway and its working method that can increase https entrance automatically
WO2020211379A1 (en) * 2019-04-16 2020-10-22 平安科技(深圳)有限公司 Web page loading method and apparatus, computer equipment and storage medium
CN110890991A (en) * 2019-12-17 2020-03-17 睿住科技有限公司 Intelligent home gateway configuration information rapid migration method and device
CN111917837A (en) * 2020-07-13 2020-11-10 西安即刻易用网络科技有限公司 Web micro application program publishing system and implementation method thereof
CN112650760A (en) * 2021-01-15 2021-04-13 北京金和网络股份有限公司 Management method and device for caching service data to different addresses
CN113765695A (en) * 2021-03-26 2021-12-07 北京京东拓先科技有限公司 Gateway management method, device, equipment and computer readable storage medium
CN113094139A (en) * 2021-04-20 2021-07-09 北京沃东天骏信息技术有限公司 UI style updating method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
苗超: "可无线充电远程控制智能门锁", 工程科技Ⅰ辑, 15 May 2016 (2016-05-15) *
解凯;李天聪;: "云笔记系统", 北京印刷学院学报, no. 09, 26 September 2018 (2018-09-26) *

Similar Documents

Publication Publication Date Title
US20200410584A1 (en) Family accounts for an online content storage sharing service
US11829586B2 (en) System and method for reacting to messages
US20150348032A1 (en) Real time approval of digital store purchases for a shared content storage account
CN107710157A (en) Multi-tenant, the specific application program of tenant
US8083135B2 (en) Information card overlay
US8661502B2 (en) Determining a sensitivity label of document information in real time
US20150341416A1 (en) Cloud management systems and methods for executing applications of android systems
TW201621706A (en) Sharing content with permission control using near field communication
CN111512286A (en) Method for arranging program and electronic equipment
US20140278812A1 (en) Diagnostics storage within a multi-tenant data center
US20130232481A1 (en) Information processing apparatus and client management method
CN111695151A (en) Application permission setting method and device, electronic equipment and readable storage medium
CN112558833B (en) Application running method and device and electronic equipment
US20220083178A1 (en) Left rail corresponding icon for launching apps within the context of a personal information manager
US11997486B2 (en) Method and system of providing WiFi credentials through remote invitations
WO2023103901A1 (en) Application management method and apparatus, and electronic device
CN112580065A (en) Data query method and device
CN114237747A (en) Application program interface gateway configuration method and device, terminal equipment and storage medium
US11601476B2 (en) Gateway action framework
US20220191183A1 (en) Method and apparatus for providing user profile
US11757976B2 (en) Unified application management for heterogeneous application delivery
CN110865850B (en) Desktop configuration method of double-desktop terminal and terminal
CN107533487B (en) Cloud-hosted settings
CN115208996A (en) Information processing system, data management device and method, storage medium, and computer device
US11570177B2 (en) Distributed remote network systems for processing resource center operations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination