CN117221374B - API (application program interface) calling method and system based on API gateway - Google Patents

API (application program interface) calling method and system based on API gateway Download PDF

Info

Publication number
CN117221374B
CN117221374B CN202311169767.2A CN202311169767A CN117221374B CN 117221374 B CN117221374 B CN 117221374B CN 202311169767 A CN202311169767 A CN 202311169767A CN 117221374 B CN117221374 B CN 117221374B
Authority
CN
China
Prior art keywords
api
api call
message
converter
chain
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.)
Active
Application number
CN202311169767.2A
Other languages
Chinese (zh)
Other versions
CN117221374A (en
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.)
Guangzhou Tcl Internet Micro Loan Co ltd
Original Assignee
Guangzhou Tcl Internet Micro Loan Co ltd
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 Guangzhou Tcl Internet Micro Loan Co ltd filed Critical Guangzhou Tcl Internet Micro Loan Co ltd
Priority to CN202311169767.2A priority Critical patent/CN117221374B/en
Publication of CN117221374A publication Critical patent/CN117221374A/en
Application granted granted Critical
Publication of CN117221374B publication Critical patent/CN117221374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an API calling method and system based on an API gateway, and relates to the field of computer network security. The method comprises the following steps: responding to the API call request message, and checking the legality and the uploading repeatability of the API call request message by the API gateway; responding to the API call request message passing through the validity check sum and uploading the repeatability check, determining an API call chain and a converter responsibility chain, and calling a converter to process the API call request message once according to the converter responsibility chain to obtain a final processing message; calling an API to respond to the final processing message and repackaging according to the API call chain to obtain a flow message; according to the responsibility chain of the converter, calling the converter to carry out secondary processing on the flow message to obtain a final response message and storing the final response message into a cache; and returning the final response message to the client, and ending the current API call. Compared with the prior art, the invention can simultaneously consider the safety and the code reusability, improves the expansibility and the openness of the stock platform, and is particularly suitable for the financial field.

Description

API (application program interface) calling method and system based on API gateway
Technical Field
The invention relates to the technical field of computer network security, in particular to an API calling method and system based on an API gateway.
Background
At present, when business data (including text data, image data and the like) is processed through an inventory platform, lawless persons can easily damage the system safely, violently and the like if information leakage occurs, normal business development is affected, the information safety of customers cannot be ensured, and therefore, the requirements on the data safety and the system stability in the financial field are higher.
The financial platform needs to be introduced into a plurality of financial institutions through business docking, and a plurality of API selections are provided for the partners to meet the demands of the partners, but when incremental product docking is carried out, the business processes are approximately the same, but the multiplexing degree of business codes of the original stock platform is lower due to the fact that the safety and the requirements of different stock platforms on incoming data are different, and the incremental product cannot be effectively supported in time to be used rapidly.
Disclosure of Invention
The invention provides an API calling method and system based on an API gateway for overcoming the defect that the prior art cannot achieve both safety and code reusability.
In order to solve the technical problems, the technical scheme of the invention is as follows:
in a first aspect, an API gateway-based API call method includes:
Responding to an API call request message of a client, and checking the legality and the uploading repeatability of the API call request message by an API gateway;
Responding to the API call request message passing through the validity check sum and uploading the repeatability check, determining an API call chain and a converter responsibility chain, and sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message;
Calling an API in turn according to the API call chain to respond to the final processing message and repackaging the final processing message to obtain a flow message; the API is coupled with at least one business code block of at least one stock platform;
Calling a converter to carry out secondary processing on the flow message obtained after all API call responses are completed according to the converter responsibility chain, obtaining a final response message and storing the final response message into a cache;
And returning the final response message to the client, and ending the current API call.
The API calling system is used for applying the method of the first aspect and comprises an API gateway, wherein the API gateway is configured with an API calling chain and a converter responsibility chain and is used for responding to an API calling request message of a client and carrying out validity check and uploading repeatability check on the API calling request message; the method is also used for determining the API call chain and the converter responsibility chain according to the API call request message passing through the validity check sum and uploading the repeatability check; the method is also used for sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message; the method is also used for sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message; the method is also used for calling an API in turn to respond to the final processing message according to the API call chain and repackaging the final processing message to obtain a flow message; the method is also used for calling the converter to carry out secondary processing on the flow message obtained after all API call responses are completed according to the converter responsibility chain, obtaining a final response message and storing the final response message into a cache; and the final response message is also used for returning the final response message to the client and ending the current API call.
In a third aspect, a computer readable storage medium has stored thereon at least one instruction, at least one program, code set, or instruction set that is loaded and executed by a processor to implement the method of the first aspect.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
the invention discloses an API calling method and system based on an API gateway, wherein the method carries out validity check and uploading repeatability check on an API calling request message from a client of a partner through the API gateway so as to ensure the safety of API calling and reduce the access pressure of a stock platform; and the service code block of the stock platform is coupled to at least one API (Application Programming Interface, application program interface), and according to an API call chain and a converter responsibility chain, the API gateway respectively calls a converter and an API to respond to the API call request message to obtain a final response message and return to the client, so that the service code reusability of the stock platform and the compatibility of the stock platform to an incremental product (namely a new client) are realized. Compared with the prior art, the invention simultaneously considers the safety and code reusability of the stock platform, improves the expansibility and openness of the stock platform, reduces the production cost and production time of incremental products, and is particularly suitable for the financial field.
Drawings
FIG. 1 is a flow chart of an API call method according to embodiment 1 of the present invention;
FIG. 2 is a flow chart of processing an API call request message in embodiment 1 of the present invention;
fig. 3 is a schematic workflow diagram between an API gateway and an API configuration management front end in the system according to embodiment 2 of the present invention.
Detailed Description
The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances and are merely illustrative of the manner in which embodiments of the application have been described in connection with the description of the objects having the same attributes. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of elements is not necessarily limited to those elements, but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The drawings are for illustrative purposes only and are not to be construed as limiting the present patent;
For the purpose of better illustrating the embodiments, certain elements of the drawings may be omitted, enlarged or reduced and do not represent the actual product dimensions; the same or similar reference numerals correspond to the same or similar components;
it will be appreciated by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
Further advantages and effects of the present invention will become apparent to those skilled in the art from the disclosure herein, when considered in conjunction with the accompanying drawings and examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
Example 1
The embodiment proposes an API calling method based on an API gateway, referring to fig. 1, including:
Responding to an API call request message of a client, and checking the legality and the uploading repeatability of the API call request message by an API gateway;
Responding to the API call request message passing through the validity check sum and uploading the repeatability check, determining an API call chain and a converter responsibility chain, and sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message;
Calling an API in turn according to the API call chain to respond to the final processing message and repackaging the final processing message to obtain a flow message; the API is coupled with at least one business code block of at least one stock platform;
Calling a converter to carry out secondary processing on the flow message obtained after all API call responses are completed according to the converter responsibility chain, obtaining a final response message and storing the final response message into a cache;
And returning the final response message to the client, and ending the current API call.
In the embodiment, an API gateway (API GATEWAY) performs validity check and uploading repeatability check on an API call request message from a client of a partner so as to ensure the safety of API call and reduce the access pressure of a stock platform; and the service code block of the stock platform is coupled to at least one API, and according to an API call chain and a converter responsibility chain, the API gateway respectively calls the converter and the API to respond to the API call request message to obtain a final response message and returns the final response message to the client, so that the service code reusability of the stock platform and the compatibility of the stock platform to an increment product (namely a new client) are realized, and the concurrent processing of the original service flow engine is further realized.
It should be noted that, the stock platform often undergoes a long-time practical inspection, and the security and stability of the service code block are relatively high. In addition, the service data value in the financial field is higher, if the increment platform is built in a complete reconstruction mode, serious consequences are often caused when the increment platform is insufficient in stability and generates a safety problem, and the service code blocks of the stock platform are called through an API gateway for processing, so that the safety of the increment platform can be effectively enhanced.
It should also be noted that the API may couple at least one service code block of a single stock platform; multiple business code blocks of multiple stock platforms may also be coupled.
In some examples, the API gateway is implemented based on a Java Spring boot open source framework and deployed in a Java Virtual Machine (JVM).
In some examples, an nmginx server is employed as the API gateway.
In some examples, the API gateway has a MySQL database connected to store API call chains and converter responsibility chains.
In some examples, the caching is implemented with Redis (Remote Dictionary Server, remote data service);
In some examples, the cache employs a ZooKeeper to implement distributed storage;
In other examples, the caching is implemented with Nacos.
In some examples, the converter responsibility chain provides specific converter (Adapter) addresses and call orders of the converters;
It will be appreciated by those skilled in the art that the chain of converter responsibilities provides the address of the converter for the API gateway to find calls.
In a preferred embodiment, the determining an API call chain and a converter responsibility chain in response to the API call request message passing the validity check and uploading the repeatability check, referring to fig. 2, includes:
decrypting the API call request message passing through the validity check sum and sending the repeatability check to obtain a message Wen Mingwen;
and determining an API call chain and a converter responsibility chain according to the message text, and sequentially calling a converter according to the converter responsibility chain to process the message text once to obtain a final processed message.
In an alternative embodiment, the converter responsibility chain includes a message data converter responsibility chain and a response data converter responsibility chain; the message data converter responsibility chain is used for providing a first converter code and a first converter execution sequence for the API gateway, and the response data converter responsibility chain is used for providing a second converter code and a second converter execution sequence for the API gateway.
In an alternative embodiment, the API call request message includes a partner code and a serial number; the API gateway checks the legality and the uploading repeatability of the API call request message, and comprises the following steps:
The API gateway obtains a secret key according to partner codes of the client, and performs signature verification on the API call request message through the secret key: if the signature passes the verification, the API call request report is regarded as the preparation legitimacy; otherwise, the API call request message is regarded as not having legality, and the current API call is ended;
The API gateway performs serial number repeatability verification on the API call request message passing signature verification: if the serial numbers are repeated, returning corresponding final response messages from the cache; otherwise, further decrypting the API call request message.
In a preferred embodiment, the primary processing includes performing name replacement, value verification and/or illegal value elimination on the message according to configuration rules; the secondary processing comprises name replacement, numerical mapping, message encryption and/or signing of the flow message.
It should be noted that, the service code blocks of different stock platforms may have different requirements for the incoming parameters, or different incremental platforms may have different requirements for the returned outgoing parameters, for example, the name of the incoming parameter needs to be "name1", and the parameter name in the API call request message is "name", and name substitution is performed by the converter, so that the service code blocks of the stock platform may respond to different incoming parameters; likewise, the outgoing parameters of the business code blocks of the stock platform can be converted by the converter, so that the incremental platform can effectively respond to the outgoing parameters of the stock platform.
In some examples, the value check includes checking whether the parameter is a null value;
In other examples, the value verification includes verifying whether the parameter is located in a legal interval, for example, setting the legal interval about age to be less than 70, if the incoming age parameter is legal, further calling other converters or APIs to process, otherwise, returning a prompt identifier "age may not be greater than 70 years old" to the client.
In some examples, the input parameter required by the service code block is (username, age), and the parameter in the API call request message sent by the client is (username, age, nickname), then illegal value rejection (i.e. rejecting the nickname) is performed by the converter.
In one implementation, the configuration rules are derived based on an internal rule structure tree.
In a preferred embodiment, the establishment procedure of the converter responsibility chain comprises:
The API gateway acquires all API information bound by all the partners; the API information comprises the application APIs and corresponding service code fragments, parameter binding conditions based on each API in the dimension of the cooperation party and corresponding rule information of the API parameters;
An internal rule structure tree is established based on the API information, partner codes and/or service scene codes are used as leaf nodes, and corresponding API information is mounted;
establishing the API call chain based on the business process of the partner;
And according to the internal rule structure tree, using partner codes and/or APIs as main links, establishing the converter responsibility chains corresponding to the API call chains, mounting converters required by all APIs, and performing data persistence setting.
Those skilled in the art will appreciate that a partner may have at least one business process or at least one client; one client can implement at least one business process; one business process of the same client corresponds to at least one API call chain; one API call chain corresponds to at least one converter responsibility chain.
It should be further noted that, depending on the implementation of the API call chain and the converter responsibility chain, the preferred embodiment may increase or decrease the required converters for verification based on the needs of the partner itself, so as to implement various security checks.
In some examples, the verification converter includes, but is not limited to, RSA (1024/2048) encryption/decryption/encryption signature process, AES/DES encryption/decryption process, specified field value verification, unspecified (redundant) field culling, internal identity information verification, and the like.
In some examples, the corresponding rule information for the API parameter includes, but is not limited to, whether it is necessary to pass, map a name, a value type and/or range, and the like.
In some examples, the internal rule structure tree has partner code as a primary leaf node and traffic scene code as a secondary leaf node.
In some examples, links are established with APIs as a body dimension;
in other examples, links are established with APIs common to each client as a body dimension.
In some examples, links are established with API call chains common to each client as a body dimension.
In an alternative embodiment, the establishing the API call chain by the partner-based business process includes:
Selecting a corresponding API according to the service flow, and configuring an execution rule and an execution sequence to form the API call chain;
And configuring signature information rules for the API call chain, and performing data persistence setting.
Those skilled in the art will appreciate that the execution order between APIs coupled by one chain of API calls may be serial or parallel.
Example 2
The embodiment provides an API calling system, which applies the method described in the embodiment 1 and comprises an API gateway; the API gateway is configured with an API call chain and a converter responsibility chain, and is used for responding to an API call request message of the client and carrying out validity check and uploading repeatability check on the API call request message; the method is also used for determining the API call chain and the converter responsibility chain according to the API call request message passing through the validity check sum and uploading the repeatability check; the method is also used for sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message; the method is also used for sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message; the method is also used for calling an API in turn to respond to the final processing message according to the API call chain and repackaging the final processing message to obtain a flow message; the method is also used for calling the converter to carry out secondary processing on the flow message obtained after all API call responses are completed according to the converter responsibility chain, obtaining a final response message and storing the final response message into a cache; and the final response message is also used for returning the final response message to the client and ending the current API call.
In a preferred embodiment, referring to fig. 3, the API gateway is further configured with an internal rule structure tree; the system also comprises an API configuration management front end, a request processing module and a control module, wherein the API configuration management front end is used for initiating a query request to the API gateway; the API gateway is also used for displaying rule data returned after the API gateway responds to the query request based on the internal rule structure tree; and further for initiating a configuration request for the rule data to the API gateway; and the operation identifier returned by the API gateway after responding to the configuration request is also shown.
In some examples, the API configuration management front-end is implemented based on a micro front-end framework of vue.
It should be understood by those skilled in the art that by the API configuration management front end, dynamic changes to rule data may be implemented, thereby dynamically changing the converter responsibility chain and/or the API call chain.
In an alternative embodiment, the API gateway responds to the configuration request by:
The API gateway receives the configuration request and performs data validity verification;
responding to the configuration request passing through data validity verification, updating the internal rule structure tree by the API gateway, and performing data persistence setting;
and after the API gateway completes the updating operation, the operation identifier is returned to the API configuration front end after the updating result is checked.
In some examples, the API gateway returns an operation identifier to the API configuration front end as "successful" if it verifies that the update operation is successfully completed; the API gateway returns an operation identifier of "unsuccessful" if it does not verify that the update operation is successfully completed.
It will be appreciated that the apparatus of this embodiment corresponds to the method of embodiment 1 described above, and the alternatives in embodiment 1 described above are equally applicable to this embodiment, so that the description will not be repeated here.
Example 3
The present embodiment proposes a computer-readable storage medium having stored thereon at least one instruction, at least one program, a set of codes or a set of instructions, which are loaded and executed by a processor, so that the processor performs some or all of the steps of the method described in embodiment 1.
It will be appreciated that the storage medium may be transitory or non-transitory. By way of example, the storage medium includes, but is not limited to, a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic or optical disk, and other various media in which program code may be stored.
In some examples a computer program product is provided, which may be embodied in hardware, software, or a combination thereof. As a non-limiting example, the computer program product may be embodied as the storage medium, but also as a software product, such as an SDK (Software Development Kit ), or the like.
In some examples, a computer program is provided comprising computer readable code which, when run in a computer device, causes a processor in the computer device to perform some or all of the steps for carrying out the method.
The present embodiment also proposes an electronic device comprising a memory storing at least one instruction, at least one program, a set of codes or a set of instructions, and a processor implementing part or all of the steps of the method as described in embodiment 1 when the processor executes the at least one instruction, at least one program, set of codes or set of instructions.
The processor may be a Central processing unit (Central ProcessingUnit, CPU), a microprocessor (Microprocessor Unit, MPU), a Digital signal processor (Digital SignalProcessor, DSP), a field programmable gate array (Field Programmable GATE ARRAY, FPGA), or the like, for example.
In some examples, a hardware entity of the electronic device is provided, comprising: a processor, a memory, and a communication interface;
wherein the processor generally controls the overall operation of the electronic device;
The communication interface is used for enabling the electronic equipment to communicate with other terminals or servers through a network;
the memory is configured to store instructions and applications executable by the processor, and may also cache data to be processed or processed by various modules in the processor and the electronic device, including but not limited to image data, audio data, voice communication data, and video communication data, may be implemented by FLASH memory (FLASH) or random access memory (RAM, random Access Memory).
Further, data transfer between the processor, the communication interface, and the memory may be via a bus, which may include any number of interconnected buses and bridges, which connect various circuits of the one or more processors and the memory together.
It will be appreciated that the alternatives in embodiment 1 described above are equally applicable to this embodiment and will not be repeated here.
It is to be understood that the above examples of the present invention are provided by way of illustration only and not by way of limitation of the embodiments of the present invention. It should be understood that, in various embodiments of the present disclosure, the size of the sequence numbers of the steps/processes described above does not mean the order of execution, and the order of execution of the steps/processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments. It should also be understood that the above described device embodiments are merely illustrative, and that the division of the units is merely a logical function division, and that there may be other divisions when actually implemented, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection of the components to each other may be through some interfaces, indirect coupling or communication connection of devices or units, electrical, mechanical, or other forms. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are desired to be protected by the following claims.

Claims (9)

1. An API gateway-based API call method, comprising:
Responding to an API call request message of a client, and checking the legality and the uploading repeatability of the API call request message by an API gateway;
Responding to the API call request message passing through the validity check sum and uploading the repeatability check, determining an API call chain and a converter responsibility chain, and sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message;
Calling an API in turn according to the API call chain to respond to the final processing message and repackaging the final processing message to obtain a flow message; the API is coupled with at least one business code block of at least one stock platform;
Calling a converter to carry out secondary processing on the flow message obtained after all API call responses are completed according to the converter responsibility chain, obtaining a final response message and storing the final response message into a cache;
Returning the final response message to the client, and ending the current API call;
The establishing process of the converter responsibility chain comprises the following steps:
The API gateway acquires all API information bound by all the partners; the API information comprises the application APIs and corresponding service code fragments, parameter binding conditions based on each API in the dimension of the cooperation party and corresponding rule information of the API parameters;
An internal rule structure tree is established based on the API information, partner codes and/or service scene codes are used as leaf nodes, and corresponding API information is mounted;
establishing the API call chain based on the business process of the partner;
and according to the internal rule structure tree, establishing the converter responsibility chain corresponding to the API call chain by taking partner codes, the API call chain and/or the API as a main body link, mounting converters required by all APIs, and performing data persistence setting.
2. An API gateway based API call method in accordance with claim 1, said determining an API call chain and a converter responsibility chain in response to said API call request message passing a validity checksum upload repeatability check, comprising:
decrypting the API call request message passing through the validity check sum and sending the repeatability check to obtain a message Wen Mingwen;
and determining an API call chain and a converter responsibility chain according to the message text, and sequentially calling a converter according to the converter responsibility chain to process the message text once to obtain a final processed message.
3. The API gateway-based API call method as recited in claim 2, wherein said API call request message includes a partner code and a serial number; the API gateway checks the legality and the uploading repeatability of the API call request message, and comprises the following steps:
The API gateway obtains a secret key according to partner codes of the client, and performs signature verification on the API call request message through the secret key: if the signature passes the verification, the API call request report is regarded as the preparation legitimacy; otherwise, the API call request message is regarded as not having legality, and the current API call is ended;
The API gateway performs serial number repeatability verification on the API call request message passing signature verification: if the serial numbers are repeated, returning corresponding final response messages from the cache; otherwise, further decrypting the API call request message.
4. The API gateway-based API call method as recited in claim 2, wherein said one-time processing includes performing name substitution, value verification and/or illegal value elimination on said message according to configuration rules; the secondary processing comprises name replacement, numerical mapping, message encryption and/or signing of the flow message.
5. The API gateway-based API call method as recited in claim 1, wherein said partner-based business process builds said API call chain comprising:
Selecting a corresponding API according to the service flow, and configuring an execution rule and an execution sequence to form the API call chain;
And configuring signature information rules for the API call chain, and performing data persistence setting.
6. An API call system, applying the method of any one of claims 1-5, comprising an API gateway, the API gateway being configured with an API call chain and a converter responsibility chain, for responding to an API call request message of a client, and performing validity check and uploading repeatability check on the API call request message; the method is also used for determining the API call chain and the converter responsibility chain according to the API call request message passing through the validity check sum and uploading the repeatability check; the method is also used for sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message; the method is also used for sequentially calling a converter according to the converter responsibility chain to process the API call request message once to obtain a final processing message; the method is also used for calling an API in turn to respond to the final processing message according to the API call chain and repackaging the final processing message to obtain a flow message; the method is also used for calling the converter to carry out secondary processing on the flow message obtained after all API call responses are completed according to the converter responsibility chain, obtaining a final response message and storing the final response message into a cache; and the final response message is also used for returning the final response message to the client and ending the current API call.
7. The API call system as recited in claim 6, wherein said API gateway is further configured with an internal rule structure tree; the system also comprises an API configuration management front end, a request processing module and a control module, wherein the API configuration management front end is used for initiating a query request to the API gateway; the API gateway is also used for displaying rule data returned after the API gateway responds to the query request based on the internal rule structure tree; and further for initiating a configuration request for the rule data to the API gateway; and the operation identifier returned by the API gateway after responding to the configuration request is also shown.
8. The API call system of claim 7, wherein said API gateway responding to said configuration request comprises:
The API gateway receives the configuration request and performs data validity verification;
responding to the configuration request passing through data validity verification, updating the internal rule structure tree by the API gateway, and performing data persistence setting;
and after the API gateway completes the updating operation, the operation identifier is returned to the API configuration front end after the updating result is checked.
9. A computer readable storage medium having stored thereon at least one instruction, at least one program, code set, or instruction set, the at least one instruction, at least one program, code set, or instruction set being loaded and executed by a processor to implement the method of any of claims 1-5.
CN202311169767.2A 2023-09-11 2023-09-11 API (application program interface) calling method and system based on API gateway Active CN117221374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311169767.2A CN117221374B (en) 2023-09-11 2023-09-11 API (application program interface) calling method and system based on API gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311169767.2A CN117221374B (en) 2023-09-11 2023-09-11 API (application program interface) calling method and system based on API gateway

Publications (2)

Publication Number Publication Date
CN117221374A CN117221374A (en) 2023-12-12
CN117221374B true CN117221374B (en) 2024-05-24

Family

ID=89043633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311169767.2A Active CN117221374B (en) 2023-09-11 2023-09-11 API (application program interface) calling method and system based on API gateway

Country Status (1)

Country Link
CN (1) CN117221374B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113394A (en) * 2019-04-19 2019-08-09 浙江数链科技有限公司 API Calls method and apparatus
CN111913713A (en) * 2020-06-10 2020-11-10 中国科学院软件研究所 Heterogeneous service integration method based on service call tracking
CN112291240A (en) * 2020-10-29 2021-01-29 国网汇通金财(北京)信息科技有限公司 Information processing method and device
CN112367321A (en) * 2020-11-10 2021-02-12 苏州万店掌网络科技有限公司 Method for quickly constructing service call and middle station API gateway
CN113630310A (en) * 2020-05-06 2021-11-09 北京农信互联科技集团有限公司 Distributed high-availability gateway system
CN113641410A (en) * 2021-06-07 2021-11-12 广发银行股份有限公司 Netty-based high-performance gateway system processing method and system
US11184454B1 (en) * 2020-12-21 2021-11-23 Coupang Corp. Systems and methods for managing perpetual data requests to conserve resources
CN114157468A (en) * 2021-11-26 2022-03-08 跨境银行间支付清算有限责任公司 Cross-border payment message transmission method and device
CN114860770A (en) * 2022-04-15 2022-08-05 北京科杰科技有限公司 Optimization method, system, computer device and medium based on data service

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10360082B2 (en) * 2017-01-19 2019-07-23 International Business Machines Corporation Analysis of application programming interface usage for improving a computer system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113394A (en) * 2019-04-19 2019-08-09 浙江数链科技有限公司 API Calls method and apparatus
CN113630310A (en) * 2020-05-06 2021-11-09 北京农信互联科技集团有限公司 Distributed high-availability gateway system
CN111913713A (en) * 2020-06-10 2020-11-10 中国科学院软件研究所 Heterogeneous service integration method based on service call tracking
CN112291240A (en) * 2020-10-29 2021-01-29 国网汇通金财(北京)信息科技有限公司 Information processing method and device
CN112367321A (en) * 2020-11-10 2021-02-12 苏州万店掌网络科技有限公司 Method for quickly constructing service call and middle station API gateway
US11184454B1 (en) * 2020-12-21 2021-11-23 Coupang Corp. Systems and methods for managing perpetual data requests to conserve resources
CN113641410A (en) * 2021-06-07 2021-11-12 广发银行股份有限公司 Netty-based high-performance gateway system processing method and system
CN114157468A (en) * 2021-11-26 2022-03-08 跨境银行间支付清算有限责任公司 Cross-border payment message transmission method and device
CN114860770A (en) * 2022-04-15 2022-08-05 北京科杰科技有限公司 Optimization method, system, computer device and medium based on data service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
池州市中小微企业信用信息共享服务平台API服务网关设计与实现;吴孟林, 钱立宾;金融科技时代;20190310(第3期);全文 *

Also Published As

Publication number Publication date
CN117221374A (en) 2023-12-12

Similar Documents

Publication Publication Date Title
US11088854B2 (en) Securing blockchain access through a gateway on behalf of a communication device
CN106055979A (en) Kernel fixing method and apparatus
CN111382164B (en) Service processing method based on block chain network
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN111339136B (en) Data checking method and device, electronic equipment and storage medium
CN109885612B (en) Synchronous validation method and device for intelligent contracts of block chains
CN110580556B (en) Data processing method and system and processor
CN110400217A (en) The regular changing process method and device of intelligent contract
CN113111126A (en) Block chain cross-chain forwarding system and forwarding method thereof
CN113852639B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN117221374B (en) API (application program interface) calling method and system based on API gateway
CN114356774A (en) Target service test method, device, equipment and storage medium
CN112053159A (en) Transaction data verification method and device, risk control server and business server
CN110111188A (en) Business handling method and apparatus
CN115052053A (en) Message processing method and simulator for bank system test
US11573808B2 (en) Methods of providing an integrated interface that includes a virtual mobile device
CN114217911A (en) Cross-chain transaction processing method, device, computing equipment and medium
CN113395390A (en) Reverse communication checking method and device based on block chain technology
CN111988473B (en) Voice communication call control method and device based on intelligent contract
CN115511622A (en) Intelligent contract upgrading method, device, equipment and storage medium
CN112711777A (en) Chain linking method, chain linking device and node equipment
CN114285613B (en) Data information calling method and device, storage medium and electronic device
CN115460142B (en) Routing addressing method and device based on cross-chain transaction
CN114499869B (en) Resource cross-chain exchange method and device based on block chain and computer equipment
CN114189934B (en) Repeated paging determining method, device, equipment and medium

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
GR01 Patent grant
GR01 Patent grant