Computer-implemented method and system for providing a dynamic endpoint for performing data transactions
By introducing the polling service system and dynamic endpoints into the API framework, the difficulty of updating old codes and the security issues of static endpoints are solved, and the flexibility and security of data transactions are achieved.
Patent Information
- Application Number
- CN202210453144.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-05-04
- Filing Date
- 2022-04-27
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Due to the existence of old code in the existing API framework, frequent updates cannot be made, and static endpoints are vulnerable to attacks, resulting in data security issues.
Dynamic endpoints are provided through the polling service system to allow data transactions between source devices and candidate application servers, dynamically generating unique responses and validating requests to ensure data security and flexibility.
It enables real-time testing of new versions without affecting old code, enhances data security, reduces the risk of static endpoint attacks, and improves the flexibility and security of data transactions.
Smart Images

Figure CN115309479B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an application programming interface (API) framework. In particular, but not exclusively, the present disclosure relates to a computer-implemented method and system for providing a dynamic endpoint for performing data transactions. Background Art
[0002] Often, the lack of adoption of new technologies is due to the presence of legacy code. Such legacy code may not be able to undergo major updates as developers cannot try out new features or bug fixes in production environments. Any updates to such legacy code that uses a globally used API may affect every external device that uses such API. Therefore, currently only one version of the legacy code is available to handle each input request at any given point in time. This in turn limits developers from frequently changing the input data associated with the endpoint as such input data is tightly coupled with the global external devices.
[0003] In addition, the endpoints currently used for API calls are static endpoints exposed to the external environment. Such static endpoints can easily become targets for attackers (unauthorized users, hackers) to attack data sources that can be accessed through static endpoints, resulting in confidential data leakage. Therefore, there is currently no framework that can solve the technical problem that static endpoints are vulnerable to attacks, resulting in data security issues.
[0004] Therefore, there is a need for a method and system that allows developers to introduce new versions of code that allow experimentation with new features and bug fixes associated with old code. In addition, there is a need to address data security issues caused by using static endpoints to receive input requests.
[0005] The information disclosed in this background section of the present disclosure is only for enhancing understanding of the general background of the present disclosure and should not be regarded as an admission or any form of suggestion that this information forms the prior art already known to a person skilled in the art. Summary of the invention
[0006] Additional features and advantages are realized through the techniques of the present disclosure.Other embodiments and aspects of the present disclosure are described in detail herein and are considered a part of the claimed disclosure.
[0007] In a non-limiting embodiment or aspect, a computer-implemented method is provided, comprising: receiving, by a polling service system, a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing, by the polling service system, the first API request of each of the one or more source devices to identify the requirement of the one or more source devices; generating, by the polling service system, a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server; and sending, by the polling service system, the unique first response generated for each of the corresponding one or more source devices, wherein each of the one or more source devices performs the one or more data transactions with the corresponding candidate application server using the corresponding unique second endpoint.
[0008] In some non-limiting embodiments or aspects, the one or more source devices are authenticated before generating the unique first response. In some non-limiting embodiments or aspects, the unique first response also includes at least one of the following: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for authentication purposes, an encryption key, one or more input fields for an API call, or any combination thereof.
[0009] In some non-limiting embodiments or aspects, the computer-implemented method also includes storing, by the polling service system, prompt information corresponding to each of the generated unique first responses, wherein the prompt information includes a unique transaction token provided to the one or more source devices for verification purposes, and at least one of: an identifier of the one or more source devices, detailed information of the unique second endpoint to be provided to the one or more source devices, an identifier of the corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint, or any combination thereof.
[0010] In some non-limiting embodiments or aspects, the unique second endpoint is dynamically generated in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirements of the one or more source devices, a geographic location of the one or more source devices, an effective time of the unique second endpoint, or any combination thereof.
[0011] In some non-limiting embodiments or aspects, the first API request includes at least one of: a device identifier (ID) of the one or more source devices, an Internet Protocol (IP) address associated with the one or more source devices, a longitude and latitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an operation code, a user ID, a pre-address ID, metadata required to complete the one or more data transactions, or any combination thereof.
[0012] In some non-limiting embodiments or aspects, the computer-implemented method also includes: receiving, by the corresponding candidate application server, a second API request from the one or more source devices through the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verifying, by the corresponding candidate application server: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; and after successful verification, sending, by the corresponding candidate application server, a second response to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof, and wherein the second response includes at least one of a confirmation related to the one or more data transactions and data related to the one or more data transactions.
[0013] In some non-limiting embodiments or aspects, the verification includes: retrieving, by the corresponding candidate application server, prompt information related to the corresponding candidate application server from a polling database associated with the polling service system; and comparing, by the corresponding candidate application server, the prompt information with a corresponding unique transaction token present in the second API request of the one or more source devices to determine a match. In some non-limiting embodiments or aspects, the computer-implemented method further includes: if the comparison determines the match or the mismatch, by the corresponding candidate application server, respectively, performing one of the following: accepting the second API request or rejecting the second API request.
[0014] In a non-limiting embodiment or aspect, a polling service system is provided, comprising: a processor; and a memory communicatively coupled to the processor, wherein the memory stores processor instructions that, when executed, cause the processor to: receive a first application programming interface (API) request from one or more source devices through a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parse the first API request of each of the one or more source devices to identify the requirement of the one or more source devices; generate a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server; and send the unique first response generated for each of the corresponding one or more source devices, wherein each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0015] In some non-limiting embodiments or aspects, the one or more source devices are authenticated before generating the unique first response. In some non-limiting embodiments or aspects, the unique first response also includes at least one of the following: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for authentication purposes, an encryption key, one or more input fields for an API call, or any combination thereof.
[0016] In some non-limiting embodiments or aspects, the processor is further configured to store prompt information corresponding to each of the generated unique first responses, wherein the prompt information includes a unique transaction token provided to the one or more source devices for verification purposes, and at least one of: an identifier of the one or more source devices, detailed information of the unique second endpoint to be provided to the one or more source devices, an identifier of the corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint, or any combination thereof.
[0017] In some non-limiting embodiments or aspects, the processor dynamically generates the unique second endpoint in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirements of the one or more source devices, a geographic location of the one or more source devices, an effective time of the unique second endpoint, or any combination thereof.
[0018] In some non-limiting embodiments or aspects, the first API request includes at least one of: a device identifier (ID) of the one or more source devices, an Internet Protocol (IP) address associated with the one or more source devices, a longitude and latitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an operation code, a user ID, a pre-address ID, metadata required to complete the one or more data transactions, or any combination thereof.
[0019] In some non-limiting embodiments or aspects, the corresponding candidate application server associated with the polling service system is configured to: receive a second API request from the one or more source devices through the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verify: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; and after successful verification, send a second response to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof, and wherein the second response includes at least one of a confirmation related to the one or more data transactions and data related to the one or more data transactions.
[0020] In some non-limiting embodiments or aspects, for verification, the corresponding candidate application server is configured to: retrieve prompt information related to the corresponding candidate application server from a polling database associated with the polling service system; and compare the prompt information with the corresponding unique transaction token present in the second API request of the one or more source devices to determine a match. In some non-limiting embodiments or aspects, if the comparison determines the match or the mismatch, the corresponding candidate application server performs one of the following: accepting the second API request or rejecting the second API request, respectively.
[0021] In a non-limiting embodiment or aspect, a non-transitory computer-readable medium is provided, comprising instructions stored thereon, which, when processed by at least one processor, cause a polling service system to perform operations including: receiving a first application programming interface (API) request from one or more source devices through a first endpoint, wherein the first API request indicates a requirement of the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing the first API request of each of the one or more source devices to identify the requirement of the one or more source devices; generating a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server; and sending the unique first response generated for each of the corresponding one or more source devices, wherein each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0022] In some non-limiting embodiments or aspects, the instructions cause the corresponding candidate application server associated with the polling service system to: receive a second API request from the one or more source devices through the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verify: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; and after successful verification, send a second response to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement, or any combination thereof.
[0023] Additional non-limiting embodiments or aspects are set forth in the following numbered clauses.
[0024] Clause 1: A computer-implemented method, comprising: receiving, by a polling service system, a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing, by the polling service system, the first API request of each of the one or more source devices to identify the requirement of the one or more source devices; generating, by the polling service system, a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint for facilitating the one or more data transactions with the corresponding candidate application server; and sending, by the polling service system, the unique first response generated for each of the one or more source devices, wherein each of the one or more source devices performs the one or more data transactions with the corresponding candidate application server using the corresponding unique second endpoint.
[0025] Clause 2: The computer-implemented method of Clause 1, wherein the one or more source devices are authenticated prior to generating the unique first response.
[0026] Clause 3: A computer-implemented method according to clause 1 or 2, wherein the unique first response also includes at least one of the following: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for verification purposes, an encryption key, one or more input fields for an API call, or any combination thereof.
[0027] Clause 4: A computer-implemented method according to any one of clauses 1 to 3, further comprising storing, by the polling service system, prompt information corresponding to each of the generated unique first responses, wherein the prompt information comprises a unique transaction token provided to the one or more source devices for verification purposes, and at least one of: an identifier of the one or more source devices, detailed information of the unique second endpoint to be provided to the one or more source devices, an identifier of the corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint, or any combination thereof.
[0028] Clause 5: A computer-implemented method according to any one of clauses 1 to 4, wherein the unique second endpoint is dynamically generated in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirements of the one or more source devices, a geographic location of the one or more source devices, a valid time of the unique second endpoint, or any combination thereof.
[0029] Clause 6: A computer-implemented method according to any one of clauses 1 to 5, wherein the first API request includes at least one of: a device identifier (ID) of the one or more source devices, an Internet Protocol (IP) address associated with the one or more source devices, a longitude and latitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an operation code, a user ID, a pre-address ID, metadata required to complete the one or more data transactions, or any combination thereof.
[0030] Clause 7: The computer-implemented method according to any one of clauses 1 to 6 further includes: receiving, by the corresponding candidate application server, a second API request from the one or more source devices through the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verifying, by the corresponding candidate application server: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; and after successful verification, sending, by the corresponding candidate application server, a second response to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof, and wherein the second response includes at least one of a confirmation related to the one or more data transactions and data related to the one or more data transactions.
[0031] Clause 8: A computer-implemented method according to any one of clauses 1 to 7, wherein the verification comprises: retrieving, by the corresponding candidate application server, prompt information related to the corresponding candidate application server from a polling database associated with the polling service system; and comparing, by the corresponding candidate application server, the prompt information with a corresponding unique transaction token present in the second API request of the one or more source devices to determine a match.
[0032] Clause 9: The computer-implemented method according to any one of clauses 1 to 8, further comprising, if the comparison determines the match or the mismatch, the corresponding candidate application server performing one of the following: accepting the second API request or rejecting the second API request, respectively.
[0033] Item 10: A polling service system comprising: a processor; and a memory communicatively coupled to the processor, wherein the memory stores processor instructions that, when executed, cause the processor to: receive a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parse the first API request of each of the one or more source devices to identify the requirement of the one or more source devices; generate a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server; and send the unique first response generated for each of the one or more source devices, wherein each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0034] Clause 11: The polling service system of clause 10, wherein the one or more source devices are authenticated prior to generating the unique first response.
[0035] Clause 12: A polling service system according to clause 10 or 11, wherein the unique first response also includes at least one of the following: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for verification purposes, an encryption key, one or more input fields for an API call, or any combination thereof.
[0036] Clause 13: A polling service system according to any one of clauses 10 to 12, wherein the processor is further configured to store prompt information corresponding to each of the generated unique first responses, wherein the prompt information includes a unique transaction token provided to the one or more source devices for verification purposes, and at least one of the following: an identifier of the one or more source devices, detailed information of the unique second endpoint to be provided to the one or more source devices, an identifier of the corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint, or any combination thereof.
[0037] Clause 14: A polling service system according to any one of clauses 10 to 13, wherein the processor dynamically generates the unique second endpoint in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirements of the one or more source devices, a geographic location of the one or more source devices, an effective time of the unique second endpoint, or any combination thereof.
[0038] Clause 15: A polling service system according to any one of clauses 10 to 14, wherein the first API request includes at least one of the following: a device identifier (ID) of the one or more source devices, an Internet Protocol (IP) address associated with the one or more source devices, a longitude and latitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an operation code, a user ID, a pre-address ID, metadata required to complete the one or more data transactions, or any combination thereof.
[0039] Clause 16: A polling service system according to any one of clauses 10 to 15, wherein the corresponding candidate application server associated with the polling service system is configured to: receive a second API request from the one or more source devices through the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verify: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; and after successful verification, send a second response to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof, and wherein the second response includes at least one of a confirmation related to the one or more data transactions and data related to the one or more data transactions.
[0040] Clause 17: A polling service system according to any one of clauses 10 to 16, wherein, for verification, the corresponding candidate application server is configured to: retrieve prompt information related to the corresponding candidate application server from a polling database associated with the polling service system; and compare the prompt information with the corresponding unique transaction token present in the second API request of the one or more source devices to determine a match.
[0041] Clause 18: A polling service system according to any one of clauses 10 to 17, wherein when the comparison determines the match or mismatch, the corresponding candidate application server respectively performs one of the following: accepting the second API request or rejecting the second API request.
[0042] Item 19: A non-transitory computer-readable medium comprising instructions stored thereon, which, when processed by at least one processor, cause a polling service system to perform operations including the following: receiving a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing the first API request of each of the one or more source devices to identify the requirement of the one or more source devices; generating a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server; and sending the unique first response generated for each of the one or more source devices, wherein each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0043] Clause 20: A medium according to clause 19, wherein the instructions cause the corresponding candidate application server associated with the polling service system to: receive a second API request from the one or more source devices through the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verify: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; and after successful verification, send a second response to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement, or any combination thereof.
[0044] A computer-implemented method is disclosed herein, which may include receiving a first application programming interface (API) request from one or more source devices via a first endpoint by a polling service system. The first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server. In addition, the method includes parsing the first API request of each of the one or more source devices by the polling service system to identify the requirement of the one or more source devices. Thereafter, the method includes generating a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices. The unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server. Finally, the method includes sending the unique first response generated for each of the one or more source devices. Each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0045] In addition, in some non-limiting embodiments or aspects, the present disclosure may include a polling service system. The polling service system includes a processor and a memory communicatively coupled to the processor. The memory stores processor instructions, which, when executed, cause the processor to receive a first application programming interface (API) request from one or more source devices through a first endpoint. The first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server. In addition, the processor parses the first API request of each of the one or more source devices to identify the requirement of the one or more source devices. Thereafter, the processor generates a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices. The unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server. Finally, the processor sends the unique first response generated for each of the one or more source devices. Each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0046] In addition, in some non-limiting embodiments or aspects, the present disclosure may include a non-transitory computer-readable medium, including instructions stored thereon, which, when processed by at least one processor, cause a polling service system to perform operations, including receiving a first application programming interface (API) request from one or more source devices through a first endpoint. The first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server. In addition, the instructions cause the processor to parse the first API request of each of the one or more source devices to identify the requirement of the one or more source devices. Thereafter, the instructions cause the processor to generate a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices. The unique first response generated for each of the one or more source devices includes a unique second endpoint that facilitates the one or more data transactions with the corresponding candidate application server. Finally, the instructions cause the processor to send the unique first response generated for each of the one or more source devices. Each of the one or more source devices uses the corresponding unique second endpoint to perform the one or more data transactions with the corresponding candidate application server.
[0047] The foregoing summary is illustrative only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features may become apparent by reference to the drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The novel features and characteristics of the present disclosure are set forth in the appended claims. However, the disclosure itself, as well as the preferred modes of use, additional objects and advantages thereof, may best be understood with reference to the following detailed description of illustrative embodiments when read in conjunction with the accompanying drawings. The accompanying drawings, which are incorporated into and constitute a part of the present disclosure, illustrate exemplary embodiments and, together with the description, serve to explain the principles disclosed. In the figures, the leftmost digit of a reference number identifies the figure in which the reference number first appears. One or more embodiments will now be described, by way of example only, with reference to the accompanying drawings, in which like reference numerals represent similar elements, and in the drawings:
[0049] Figure 1 is an exemplary architecture for performing data transactions using dynamic endpoints according to some non-limiting embodiments or aspects of the present disclosure;
[0050] Figure 2A is a detailed block diagram of a polling service system for providing a dynamic endpoint for performing data transactions according to some non-limiting embodiments or aspects of the present disclosure;
[0051] Figure 2B is an exemplary first API request according to some non-limiting embodiments or aspects of the present disclosure;
[0052] Figure 2C is an exemplary unique first response according to some non-limiting embodiments or aspects of the present disclosure;
[0053] Figure 2D is an exemplary second API request according to some non-limiting embodiments or aspects of the present disclosure;
[0054] Figure 2E is an exemplary encrypted second API request according to some non-limiting embodiments or aspects of the present disclosure;
[0055] Figure 2F is an exemplary scenario for providing a dynamic endpoint for performing data transactions according to some non-limiting embodiments or aspects of the present disclosure;
[0056] Figure 2G and 2H is an exemplary first API request according to some non-limiting embodiments or aspects of the present disclosure;
[0057] Fig.2I and 2J is an exemplary unique first response according to some non-limiting embodiments or aspects of the present disclosure;
[0058] Figure 2K and 2L is an exemplary second API request according to some non-limiting embodiments or aspects of the present disclosure;
[0059] Figure 2M and 2N is an exemplary encrypted second API request according to some non-limiting embodiments or aspects of the present disclosure;
[0060] Figure 3 is a flowchart illustrating method steps for providing a dynamic endpoint for performing data transactions according to some non-limiting embodiments or aspects of the present disclosure; and
[0061] Figure 4 is a block diagram of an exemplary computer system for implementing embodiments consistent with the present disclosure.
[0062] It will be appreciated by those skilled in the art that any block diagram herein represents a conceptual view of an illustrative system that embodies the principles of the subject matter of the present invention. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocodes, etc. represent various processes that can be substantially represented in a computer-readable medium and executed by a computer or processor, whether or not such a computer or processor is explicitly shown. Although each of the accompanying drawings shows a specific embodiment for the purpose of illustrating a clear example, other embodiments may omit, add, reorder, and / or modify any of the elements shown in the figure. DETAILED DESCRIPTION
[0063] In this document, the term “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any embodiment, aspect, or implementation of the present subject matter described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0064] In the following detailed description of non-limiting embodiments or aspects of the present disclosure, reference is made to the accompanying drawings that form part of the present disclosure, and the specific embodiments in which the present disclosure can be practiced are shown in the drawings by way of illustration. However, it should be understood that it is not desirable to limit the present disclosure to the disclosed form, but on the contrary, the present disclosure is intended to cover all modifications, equivalents and alternatives that belong to the spirit and scope of the present disclosure. It should be understood that other embodiments can be utilized and can be changed without departing from the scope of the present disclosure. Therefore, the following description should not be considered to have a restrictive meaning.
[0065] The term "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a setup, apparatus, or method that includes a list of components or steps includes not only those components or steps, but may also include other components or steps not expressly listed or inherent to such setup, apparatus, or method. In other words, without more constraints, one or more elements in a system or device following "comprises ... a" does not exclude the presence of other or additional elements in the system or method.
[0066] The term "includes / including" or any other variation thereof is intended to encompass a non-exclusive inclusion, such that a configuration, apparatus, or method that includes a series of components or steps includes not only those components or steps, but may also include other components or steps that are not explicitly listed or inherent to such configuration, apparatus, or method. In other words, without more constraints, one or more elements in a system or device following "includes ... a" do not exclude the presence of other elements or additional elements in the system or method.
[0067] Aspects, components, elements, structures, actions, steps, functions, instructions, etc. used herein should not be understood as critical or necessary unless explicitly described as such. Also, as used herein, the article "one" is intended to include one or more items, and can be used interchangeably with "one or more" and "at least one". In addition, as used herein, the term "set" is intended to include one or more items (e.g., related items, unrelated items, combinations of related items and unrelated items, etc.), and can be used interchangeably with "one or more" or "at least one". In the case of wishing to have only one item, the term "one" or similar language is used. Also, as used herein, the term "having" etc. is intended to be an open term. In addition, unless otherwise explicitly stated, the phrase "based on" is intended to mean "based at least in part". Unless otherwise explicitly specified, the term "some non-limiting embodiments or aspects" means "one or more (but not all) embodiments or aspects of the present disclosure". The description of some non-limiting embodiments or aspects with several components that communicate with each other does not mean that all these components are required. On the contrary, various optional components are described to illustrate various possible embodiments of the present disclosure.
[0068] When a single device or article is described herein, it may be apparent that more than one device / article (whether or not they cooperate) may be used in place of a single device / article. Similarly, where more than one device or article is described herein (whether or not they cooperate), it may be apparent that a single device / article may be used in place of more than one device or article, or a different number of devices / articles may be used in place of the number of devices or procedures shown. The functionality and / or features of a device may alternatively be embodied by one or more other devices that are not explicitly described as having such functionality / features. Therefore, other embodiments of the present disclosure need not include the device itself.
[0069] As used herein, the terms "communication", "transmission", "sending" and / or "receiving" may refer to the reception, acceptance, sending, transmission, provision, etc. of information (e.g., data, signals, messages, instructions, commands, etc.). A unit (e.g., a device, a system, a component of a device or system, a combination thereof, etc.) communicating with another unit means that the unit is able to directly or indirectly receive information from the other unit and / or send information to the other unit. This may refer to a direct or indirect connection (e.g., a direct communication connection, an indirect communication connection, etc.) that is wired and / or wireless in nature. In addition, although the information sent can be modified, processed, relayed and / or routed between the first unit and the second unit, the two units may also communicate with each other. For example, the first unit may communicate with the second unit even if the first unit passively receives information and does not actively send information to the second unit. As another example, the first unit may communicate with the second unit if at least one intermediate unit (e.g., a third unit located between the first unit and the second unit) processes the information received from the first unit and transmits the processed information to the second unit. In some non-limiting embodiments or aspects, a message may refer to a network packet (eg, a data packet, etc.) that includes data. It should be understood that many other arrangements are possible.
[0070] As used herein, the term "server" and / or "processor" may refer to one or more computing devices or computing units, such as processors, storage devices, and / or similar computer components, which communicate with client devices and / or other computing devices through a network such as the Internet or a private network, and in some instances, facilitate communication between other servers and / or client devices. It should be understood that there may be various other arrangements. As used herein, the term "system" may refer to one or more computing devices or a combination of computing devices, such as but not limited to processors, servers, client devices, software applications, and / or other similar components. In addition, as used herein, references to "servers" or "processors" may refer to previously described servers and / or processors stated to perform previous steps or functions, different servers and / or processors, and / or combinations of servers and / or processors. For example, as used in the specification and claims, a first server and / or a first processor stated to perform a first step or function may refer to the same or different servers and / or processors stated to perform a second step or function.
[0071] The present disclosure relates to a computer-implemented method, a polling service system, and a non-transient computer-readable medium for performing data transactions using dynamic endpoints. In some non-limiting embodiments or aspects, the application programming interface (API) framework discussed in the present disclosure may include, but is not limited to, a representational state transfer (REST) framework. The method disclosed in the present disclosure has two phases: a polling phase and a transaction phase. The polling phase is a phase in which the polling service system receives a first API request from one or more source devices and provides a dynamic endpoint for one or more source devices to interact with the corresponding candidate application server required by them. The transaction phase is a phase in which the corresponding candidate application server receives a second API request from one or more source devices through a dynamic endpoint generated during the polling phase for performing a data transaction. The polling phase introduced in the present disclosure provides a dynamic method for resolving corresponding candidate application servers, which reduces third-party attacks, thereby enhancing data security, and also enables incremental testing of new versions of old code.
[0072] The present disclosure eliminates the dependency of each consumer on using a single endpoint in an external environment, which is vulnerable to attacks. The polling phase provides one or more source devices with a dynamic endpoint for communicating with a corresponding candidate application server. Typically, there is no separate polling phase that provides a dynamic endpoint for interacting with a corresponding candidate application server. Instead, any source device can interact with a corresponding candidate application server using a static endpoint. Since such static endpoints are widely used to interact with a specific candidate application server and are well known to users around the world, such static endpoints are threatened by the interception of outgoing requests in one or more source devices, thereby compromising data security. In the present disclosure, since the polling phase is introduced to provide a dynamic endpoint, different dynamic endpoints are used to represent the same candidate application server for different requests. In this way, it is impossible for an attacker to understand the destination of the dynamic endpoint. In other words, the attacker will not be able to understand which candidate application server is being addressed using the dynamic endpoint. In addition, such a dynamic endpoint may also be associated with a timeout period, which means that the dynamic endpoint is only valid within a certain period of time, during which one or more source devices need to interact with the corresponding candidate application server to perform a data transaction. The timeout period can also be set dynamically and can be different for different requests. In addition, the dynamic endpoint is verified in real time by the corresponding candidate application server based on the prompt information provided to the corresponding candidate application server by the polling service system. Therefore, even before receiving a request from one or more source devices, the corresponding candidate application server is very clear about the type of device communicating through which endpoint. Therefore, such a dynamic endpoint with time limit and real-time verification is difficult to be hacked or predicted, thereby reducing the interception of outgoing requests in the source device, thereby improving data security.
[0073] In addition, in the present disclosure, dynamic endpoints are used to transfer one or more source devices to interact with the new version of the corresponding candidate application. The present disclosure achieves the same purpose by using predefined rules. For example, all API requests from a certain geographic location can be addressed to version 2 of the corresponding candidate application, while the rest of the API requests can be addressed to the old code of the corresponding candidate application. Therefore, this dynamic endpoint combined with the predefined rules ensures that a certain amount of API requests can be addressed to the updated version of the corresponding candidate application, thereby allowing developers to test the updated version of the corresponding candidate application in real time with a small number of users without affecting or interfering with the overall work of the old code. Therefore, the present disclosure provides a mechanism to ensure that different versions developed for old code are tested, which in turn can help update the old code by appending the new version to the existing old code, or replacing the old code with the new version, etc. This in turn enables users to use new features, security updates, etc. on the existing old code. Therefore, the present disclosure enables real-time testing of different versions of old code on an incremental basis based on predefined rules.
[0074] In addition, the present disclosure provides the flexibility to dynamically add any number of new endpoints, each of which can target different versions and introduce different principles. Different versions and principles may require different inputs or different numbers of inputs. Therefore, the present disclosure provides the flexibility to add or delete input fields during the polling phase, based on which one or more source devices insert input data while sending requests to corresponding candidate application servers via dynamic endpoints.
[0075] Furthermore, the present disclosure provides flexibility for target users in different geographic locations or different device types or different opcodes with different versions of legacy codes.
[0076] Figure 1 An exemplary architecture for performing data transactions using dynamic endpoints according to some non-limiting embodiments or aspects of the present disclosure is shown.
[0077] In some non-limiting embodiments, system 100 may include one or more source devices 1011 to 101 n(collectively referred to as one or more source devices 101), polling service system 103, polling database 105 and corresponding candidate application server 107. In some non-limiting embodiments or aspects, one or more source devices 101 may be devices that request dynamic endpoints to communicate with corresponding candidate application servers 107 for performing one or more data transactions. One or more source devices 101 may be associated with users involved in performing one or more data transactions. For example, one or more source devices 101 may include, but are not limited to, mobile devices, laptops, desktop computers, tablet phones, etc. In some non-limiting embodiments or aspects, one or more source devices 101 may communicate with each other via a communication network ( Figure 1 The communication network is not shown in FIG. 1 and is associated with the polling service system 103. For example, the communication network is a wireless communication network.
[0078] In some non-limiting embodiments or aspects, one or more source devices 101 may use Figure 1 The first endpoint shown communicates with the polling service system 103. For example, the first endpoint is a static endpoint, which can serve as an address representing the polling service system 103. The polling service system 103 can be associated with the polling database 105 via a wired or wireless communication network. In some non-limiting embodiments or aspects, the polling database 105 can store prompt information related to API requests received from one or more source devices 101. In some non-limiting embodiments or aspects, the prompt information is stored in the polling database 105 to prompt the corresponding candidate application server 107 about information directed to the corresponding candidate application server 107 via a unique second endpoint (dynamic endpoint), or in other words, information of the API request. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may also be associated with the polling database 105, such as Figure 1 The corresponding candidate application server 107 may be associated with the polling database 105 via the wireless communication network to access information related to the API request. Figure 1 It is shown using a single candidate application server 107. However, this should not be construed as a limitation of the present disclosure, as the methods disclosed in the present disclosure are also applicable to more than one candidate application server 107.
[0079] In some non-limiting embodiments or aspects, the polling service system 103 may include a processor 109, an input / output (I / O) interface 111, and a memory 113. In some non-limiting embodiments or aspects, the method of the present disclosure may include two phases: a polling phase and a transaction phase. In some non-limiting embodiments or aspects, during the polling phase, the I / O interface 111 may receive a first API request (e.g., a request to send a request to a source device 101) from one or more source devices 101. Figure 11 to n). In some non-limiting embodiments or aspects, the first API request may be a request sent to the polling service system 103 for a dynamic endpoint that communicates with the corresponding candidate application server 107 for performing one or more data transactions. In some non-limiting embodiments or aspects, the first API request may include all information required to identify the user sending the first API request. In some non-limiting embodiments or aspects, the first API request may include, but is not limited to, at least one of the following: a device identifier (ID) of one or more source devices 101, an Internet Protocol (IP) address associated with one or more source devices 101, a latitude and longitude associated with an IP address, a device score, a device type, a product ID, an operation code, a user ID, an address front ID, and metadata required to complete one or more data transactions.
[0080] After receiving the first API request, the processor 109 may authenticate the one or more source devices 101 to verify whether the first API request is received from a legitimate source device. In some non-limiting embodiments or aspects, such authentication may be performed before generating a unique first response for the first API request. If the one or more source devices 101 successfully authenticate, the processor 109 may parse the first API request of each of the one or more source devices 101 to identify the requirements of the one or more source devices 101. In some non-limiting embodiments or aspects, based on the requirements of the corresponding one or more source devices 101, the processor 109 may generate a unique first response (such as a unique first response) for each of the corresponding one or more source devices 101. Figure 1 In some non-limiting embodiments or aspects, the unique first response generated for each of the one or more source devices 101 may include a unique second endpoint (e.g., Figure 1 The unique second endpoints 1 to n) shown facilitate one or more source devices 101 to perform one or more data transactions with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the unique second endpoint is a dynamically generated endpoint that allows one or more source devices 101 to perform one or more data transactions with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the unique first response may also include, but is not limited to, at least one of the following: parameters required to perform one or more data transactions with the corresponding candidate application server 107, a unique transaction token for verification purposes, an encryption key, and one or more input fields for an API call.
[0081] Thereafter, the processor 109 may store the prompt information corresponding to each generated unique response in the polling database 105. In some non-limiting embodiments or aspects, the prompt information includes, but is not limited to, a unique transaction token provided to the one or more source devices 101 for verification purposes, and at least one of the following: an identifier of the one or more source devices 101, detailed information of a unique second endpoint to be provided to the one or more source devices 101, and an identifier of a corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint. In some non-limiting embodiments or aspects, the processor 109 may then send a unique first response generated for each of the corresponding one or more source devices 101. In some non-limiting embodiments or aspects, each of the one or more source devices 101 may use the corresponding unique second endpoint to perform one or more data transactions with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may receive a second API request (such as a request to send a data transaction) from the one or more source devices 101 through the corresponding unique second endpoint. Figure 1 1 to n as shown in ). The second API request may include, but is not limited to, parameters and metadata required to perform one or more data transactions with the corresponding candidate application server 107. For example, the parameters may be input fields, such as address, city, state, country, etc., and the metadata may be payloadized for transmission and / or input inserted by a user in the input field. In some non-limiting embodiments or aspects, one or more source devices 101 may encrypt the parameters and metadata included in the second API request before sending the second API request to the corresponding candidate application server 107 for performing one or more data transactions. Upon receiving the second API request, the corresponding candidate application server 107 may verify the one or more source devices 101 and the second API request received through the unique second endpoint, and may then allow the one or more source devices 101 to perform one or more data transactions. After completing the one or more data transactions, the corresponding candidate application server 107 may send a second response (such as Figure 11 to n) shown in FIG. 1 are sent to one or more source devices 101. For example, the second response may be related to one or more data transactions, which may include, but are not limited to, data retrieval, data element modification, data element addition, data element deletion, and data element replacement. For example, if the data transaction is a data retrieval operation, the corresponding candidate application server 107 may provide a second response including the data requested by the one or more source devices 101. For example, if the data transaction is related to data element addition, the corresponding candidate application server 107 may add / append the data element to the existing data associated with the corresponding candidate application server 107, and may provide a confirmation of such addition as a second response to the one or more data transactions.
[0082] Figure 2A A detailed block diagram of a polling service system for providing dynamic endpoints for performing data transactions according to some non-limiting embodiments or aspects of the present disclosure is shown.
[0083] In some non-limiting embodiments, the polling service system 103 may include data 203 and a module 205, such as Figure 2A For example, data 203 may be stored in memory 113, as shown in FIG. Figure 2A In some non-limiting embodiments or aspects, data 203 may include request data 205, response data 207, prompt information 209, rule data 211, and other data 213. Figure 2A As shown, module 215 is described in detail herein.
[0084] In some non-limiting embodiments or aspects, data 201 may be stored in memory 113 in the form of various data structures. In addition, data models such as relational or hierarchical data models may be used to organize data 201. Other data 213 may store data generated by modules 215 for performing various functions of polling service system 103, including temporary data and temporary files.
[0085] In some non-limiting embodiments or aspects, the data 201 stored in the memory 113 can be processed by a module 215 of the polling service system 103. The module 215 can be stored in the memory 113. In an example, the module 215 communicatively coupled to the processor 109 configured in the polling service system 103 can also exist outside the memory 113, such as Figure 2A As used herein, the term "module 215" may refer to an application specific integrated circuit (ASIC) that executes one or more software or firmware programs, an electronic circuit, a processor (shared processor, dedicated processor or processor group) and memory, a combinational logic circuit, and / or other suitable components that provide the described functionality.
[0086] In some non-limiting embodiments or aspects, the modules 215 may include, for example, a receiving module 221, a verification module 223, a parsing module 225, a response generation module 227, a prompting module 229, a sending module 231, and other modules 233. The other modules 233 may be used to perform various miscellaneous functionalities of the polling service system 103. It should be appreciated that such aforementioned modules 203 may be represented as a single module or a combination of different modules.
[0087] In some non-limiting embodiments or aspects, the receiving module 221 may receive a first API request from one or more source devices 101 through a first endpoint. Therefore, the first API request received by the polling service system 103 may be stored as request data 205. In some non-limiting embodiments or aspects, one or more source devices 101 may be devices that request a dynamic endpoint to communicate with a corresponding candidate application server 107 for performing one or more data transactions. One or more source devices 101 may be associated with a user involved in performing one or more data transactions. For example, one or more source devices 101 may include, but are not limited to, a mobile device, a laptop, a desktop computer, a tablet phone, etc. In some non-limiting embodiments or aspects, the first endpoint may be a static endpoint that may serve as an address representing the polling service system 103. For example, the first endpoint may be a uniform resource locator (URL). In some non-limiting embodiments or aspects, the first API request may indicate a requirement for one or more source devices 101 to perform one or more data transactions with a corresponding candidate application server 107. In some non-limiting embodiments or aspects, the first API request may include, but is not limited to, at least one of the following: device IDs of one or more source devices 101, IP addresses associated with one or more source devices 101, longitude and latitude associated with the IP addresses, device scores, device types, initial basic tokens, product IDs, operation codes, user IDs, pre-address IDs, and metadata required to complete one or more data transactions. An exemplary first API request is as follows: Figure 2B shown.
[0088] In some non-limiting embodiments or aspects, the parameters included in the first API request may range from decision and fraud management (DFM) parameters to any API specific pre-transaction parameters that assist in API calls. In some non-limiting embodiments or aspects, including such parameters in the first API request may help identify the corresponding candidate application server 107 to detect the exact cell or data element in the database table as required by one or more source devices 101. Figure 2BIn the exemplary first API request shown, the device ID, the IP address associated with the source device, the latitude and longitude associated with the IP address, the device type, and the device score can be DFM parameters. In some non-limiting embodiments or aspects, the device score can help determine the credibility factor of one or more source devices 101, which means that when there are requests from the same source device that exceed the predefined limit, the device score may be reduced. If the device score is lower than the predefined device score value, the source device may be blacklisted. In addition, parameters such as the first transaction token, product ID, operation code, user ID, and address pre-ID of the above exemplary first API request can be API-specific pre-transaction parameters. In some non-limiting embodiments or aspects, the operation code can indicate the operation to be performed during the transaction phase, and if the operation code indicates an operation involving an address change, the address pre-ID can indicate the ID of the address to be modified during the transaction phase. In some non-limiting embodiments or aspects, the parameters shown in the above exemplary first API request do not include the actual payload, but include the necessary attributes required to process one or more data transactions with the corresponding candidate application server 107.
[0089] In some non-limiting embodiments or aspects, the verification module 223 may verify one or more source devices 101 to verify whether the first API request is received from a legitimate source device 101. In some non-limiting embodiments or aspects, such verification may be performed before generating a unique first response for the first API request. In some non-limiting embodiments or aspects, as part of the verification, the verification module 223 may check the user's login status, check whether the user has the right to access or perform the requested operation, check whether one or more source devices of the user support the function requested by the user, etc. In some non-limiting embodiments or aspects, the verification module 223 may perform such verification based on information provided as part of the first API request. For example, by associating the device ID, device score, geographic location, and / or product ID, the verification module 223 may understand whether the user has the right to access such a product. Similarly, for example, the verification module 223 may verify whether one or more source devices 101 support the function requested by the user by associating the device ID, device type, and operation code. In some non-limiting embodiments or aspects, if the verification is unsuccessful for any of the aforementioned scenarios, the verification module 223 may indicate that the verification is unsuccessful. The polling service system 103 may then reject the first API request with an appropriate Hypertext Transfer Protocol (HTTP) response. For example, the HTTP response may be HTTP 400—BAD_REQUEST.
[0090] In some non-limiting embodiments or aspects, after successful authentication, the parsing module 225 can parse the first API request of each of the one or more source devices 101 to identify the requirements of the one or more source devices 101. For example, the parsing module 225 can parse the opcode, pre-address ID, product ID, etc. to understand the requirements of the one or more source devices 101. In other words, the parsing module 225 can parse the information provided in the first API request to understand the type of data transaction that the one or more source devices 101 are seeking to perform with the corresponding candidate application server 107.
[0091] In some non-limiting embodiments or aspects, after parsing the first API request, the response generation module 227 may generate a unique first response for each of the one or more source devices 101 based on the requirements of the corresponding one or more source devices 101. The unique first response generated by the response generation module 227 may therefore be stored as response data 207. In some non-limiting embodiments or aspects, the unique first response generated for each of the one or more source devices 101 may include a unique second endpoint to facilitate one or more data transactions with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the unique first response may also include, but is not limited to, at least one of the following: parameters required to perform one or more data transactions with the corresponding candidate application server 107, a unique transaction token for verification purposes, an encryption key, and one or more input fields for the API call. An exemplary unique first response such as Figure 2C shown.
[0092] exist Figure 2C In the exemplary unique first response shown, the second endpoint is a dynamically generated endpoint, for example, a URL to which one or more source devices 101 can send a second API request including a payload. In some non-limiting embodiments or aspects, the token value in the unique first response is different from the initial basic token, and the response generation module 227 can replace the initial basic token included in the first API request with Figure 2CThe unique transaction token shown in the exemplary unique first response shown. In some non-limiting embodiments or aspects, the unique transaction token may represent the login status of the user. In addition, the input field in the above exemplary unique first response may be provided to the user to provide input. In some non-limiting embodiments or aspects, such input provided by the user in the input field may be included in the second API request communicated with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the encryption key included as part of the unique first response may be used to encrypt the data by one or more source devices 101 before sending the data to the corresponding candidate application server 107. In some non-limiting embodiments or aspects, in order to generate a unique first response including a unique second point, the response generation module 227 may first identify whether one or more source devices 101 are capable of supporting the data transaction that the user of the one or more source devices 101 wishes to perform with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the response generation module 227 may identify whether one or more source devices 101 are capable of supporting the data transaction by associating the operation code, the pre-address ID, the device parameters such as the device ID, the device type, the device score, etc. included in the first API request. Second, the response generation module 227 may identify, based on the parsed data, corresponding candidate application servers 107 that each of the one or more source devices 101 has requested to perform a data transaction.
[0093] After parsing the first API request, the response generation module 227 may identify product-specific information, such as a product ID included as part of the first API request. Based on such product ID, the response generation module 227 may identify corresponding candidate application servers 107 with which one or more source devices 101 request to perform a data transaction. In some non-limiting embodiments or aspects, the response generation module 227 may generate a unique second endpoint to include in the unique first response only when the one or more source devices 101 are capable of supporting the data transaction to be performed and when the one or more source devices 101 are identified with which the corresponding candidate application server 107 wishes to perform a data transaction. In some non-limiting embodiments or aspects, the unique second endpoint may be dynamically generated in response to each of the first API requests based on one or more predefined rules.
[0094] The one or more predefined rules may be related to at least one of the following: the version of the corresponding candidate application that is favorable to the corresponding candidate application server 107, the criticality of the requirements of the one or more source devices 101, the geographical location of the one or more source devices 101, and the validity time of the unique second endpoint. For example, consider three versions of the candidate application that is favorable to the corresponding candidate application server 107. Among the three versions, consider that one version is an old code, while the other two versions are newly developed versions, and real-time iterative testing is required to update the old code. Therefore, in order to iteratively test the two versions of the candidate application, the predefined rules can be stored in the polling service system 103. For example, consider that the predefined rules can be as follows:
[0095] If the geographic location of the first API request is "XXX", specify a unique second endpoint to represent version 2 of the corresponding candidate application;
[0096] If the geographic location of the first API request is "YYY", specifying a unique second endpoint to represent version 3 of the corresponding candidate application;
[0097] If the geographic location of the first API request is any other location except XXX and YYY, then specify a unique second endpoint to represent version 1 of the corresponding candidate application.
[0098] Specifying a unique second endpoint for each first API request based on the above exemplary predefined rules can ensure that only users whose first API requests come from geographic locations of XXX and YYY can obtain the unique second endpoint representing the newly developed version of the corresponding candidate application. Therefore, this mechanism allows testing different versions that may be integrated in or replaced in old code to explore newer features and enhancements. Multiple predefined rules can be stored in the polling service system 103 with respect to parameters other than geographic location, such as device type, criticality of the first API request, etc. In some non-limiting embodiments or aspects, the predefined rules can be stored as rule data 211.
[0099] In some non-limiting embodiments or aspects, after generating the unique first response, the prompting module 229 may store the prompting information 209 corresponding to each generated unique first response in the polling database 105 associated with the polling service system 103. In some non-limiting embodiments or aspects, the prompting information 209 includes, but is not limited to, a unique transaction token provided to one or more source devices 101 for verification purposes, and at least one of the following: an identifier of one or more source devices 101, detailed information of a unique second endpoint to be provided to one or more source devices 101, and an identifier of a corresponding candidate application server 107 that the one or more source devices 101 are allowed to access through the unique second endpoint. In some non-limiting embodiments or aspects, the prompting information 209 may have additional information, such as an operation code, a pre-address ID, a timeout parameter, etc. The timeout parameter may be a parameter indicating a time period during which the unique second endpoint is valid. In some non-limiting embodiments or aspects, the prompting module 229 may prompt the corresponding candidate application server 107 about generating a unique second endpoint for one or more source devices 101 to access the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may access the polling database 105 to read the prompt information 209 and provide a confirmation to the polling service system 103. In some non-limiting embodiments or aspects, after reading the prompt information 209, the corresponding candidate application server 107 may be ready to receive requests from the corresponding one or more source devices 101, as indicated in the prompt information 209. The corresponding candidate application server 107 may wait for a period of time indicated by a timeout parameter to receive a request from the one or more corresponding source devices 101.
[0100] In addition, in some non-limiting embodiments or aspects, the sending module 231 may send a unique first response generated for each of the corresponding source devices 101 to the corresponding one or more source devices 101. In some non-limiting embodiments or aspects, each of the one or more source devices 101 may use the corresponding unique second endpoint to perform one or more data transactions with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, after receiving the unique first response from the sending module 231, the one or more source devices 101 may use the information present in the unique first response to prepare a dynamic payload. In some non-limiting embodiments or aspects, the dynamic payload may include parameters and metadata required to perform one or more data transactions with the corresponding candidate application server 107. For example, the parameters may be various input fields provided by the sending module 231 in the unique first response, and the user may fill in the values for the fields. For example, the metadata may be the values filled in by the user for each input field or any other data that helps to perform one or more data transactions. For example, the metadata may include detailed information about the one or more data transactions to be performed with the corresponding candidate application server 107. An exemplary dynamic payload may be as follows: Figure 2D shown.
[0101] In some non-limiting embodiments or aspects, one or more source devices 101 may encrypt the dynamic payload using the encryption key provided in the unique first response. For example, the encrypted dynamic payload may be as follows: Figure 2E shown.
[0102] In some non-limiting embodiments or aspects, one or more source devices 101 may each send a second API request to a corresponding unique second endpoint received from the sending module 231. The second API request may include a dynamic payload that may or may not be encrypted, which means that the second API request may include parameters and metadata required to perform one or more data transactions with the corresponding candidate application server 107. The corresponding candidate application server 107 may receive the second API request from the one or more source devices 101 through the corresponding unique second endpoint. After receiving the second API request, the corresponding candidate application server 107 may verify whether the one or more source devices 101 are a trusted source and whether the second API request received through the corresponding unique second endpoint is a valid request. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may perform the verification by initially retrieving the prompt information 209 related to the corresponding candidate application server 107 from the polling database 105 associated with the polling service system 103. In some non-limiting embodiments or aspects, retrieving the hint information 209 related to the corresponding candidate application server 107 means that the candidate application server 107 may retrieve only the hint information 209 related to the corresponding candidate application server 107 among all other hint information for other candidate application servers stored in the polling database 105. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may access the polling database 105 to retrieve the hint information 209 related to the corresponding candidate application server 107 before receiving the second API request from the one or more source devices 101, which means that the candidate application server 107 may expect to receive the second API request from the one or more source devices 101 until the indicated time expires according to the timeout parameter. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may use the hint information 209 to access the unique transaction token provided to the one or more source devices 101 for verification purposes, and at least one of the following: an identifier of the one or more source devices 101, details of the unique second endpoint to be provided to the one or more source devices 101, an identifier of the corresponding candidate application server 107 that allows the one or more source devices 101 to access through the unique second endpoint, an operation code, a pre-address ID, a timeout parameter, etc. In some non-limiting embodiments or aspects, after accessing the hint information 209 in the polling database 105, the corresponding candidate application server 107 may compare the hint information 209 with the corresponding unique transaction token present in the second API request of the one or more source devices 101 to determine a match. In some non-limiting embodiments or aspects, in the event that the comparison determines a match or a mismatch, the corresponding candidate application server 107 may perform one of the following: accept the second API request or reject the second API request.For example, if the unique transaction token received from one or more source devices 101 in the second API request matches the unique transaction token accessed from the prompt information 209, the corresponding candidate application server 107 may accept the second API request. However, if the unique transaction token received from one or more source devices 101 in the second API request does not match the unique transaction token accessed from the prompt information 209, the corresponding candidate application server 107 may reject the second API request. In addition, according to the timeout parameter present in the prompt information, the unique second endpoint is only valid for the time period mentioned in the timeout parameter, such as 15 minutes. If the corresponding candidate application server 107 determines that the second API request is received after the time period indicated by the timeout parameter expires, the second API request may be deemed to be an invalid request and the second API request may be rejected. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may perform verification based on other parameters present in the prompt information 209, such as device ID, device score, geographic location, etc., together with the unique transaction token. In some non-limiting embodiments or aspects, the candidate application server 107 can decrypt the encrypted dynamic payload of the second API request using an encryption key accessed as part of the prompt information 209 from the polling database 105 .
[0103] In some non-limiting embodiments or aspects, accepting the second API request from one or more source devices 101 indicates that the one or more source devices 101 requesting to communicate with the corresponding candidate application server 107 using the unique second endpoint are trusted sources and the second API request is also a valid request.
[0104] In some non-limiting embodiments or aspects, upon successful authentication, the corresponding candidate application server 107 may send a second response to the one or more source devices 101 through the corresponding unique second endpoint. In some non-limiting embodiments or aspects, the second response may be generated by the corresponding candidate application server 107 after performing one or more data transactions. For example, the one or more data transactions may include, but are not limited to, data retrieval, data element modification, data element addition, data element deletion, and data element replacement. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may perform one or more data transactions indicated by the one or more source devices 101. In some non-limiting embodiments or aspects, the one or more data transactions may be indicated by the one or more source devices 101 in a first API request stored as part of the prompt information 209 in the polling database 105 of the corresponding candidate application server 107 for access and retrieval. Alternatively, the one or more data transactions may be indicated by the one or more source devices 101 in a second API request sent to the corresponding candidate application server 107. For example, the one or more data transactions to be performed may be indicated by the one or more source devices 101 via an operation code in the first API request and / or the second API request.
[0105] Hereinafter, the process of providing a dynamic endpoint for performing data transactions is explained through one or more exemplary scenarios. However, this should not be construed as a limitation of the present disclosure.
[0106] Consider Figure 2F The exemplary scenario shown in FIG. 1 is a scenario in which user A and user B wish to perform a data transaction with a candidate application server 107. In addition, consider that user A is using a source device 101A from a geographical location in "Bangalore", and user B is using a source device 101B from a geographical location in "Hyderabad". Initially, user A and user B send a first API request 1 and a first API request 2 through a first endpoint, wherein the first endpoint corresponds to the polling service system 103. For example, the first API request 1 sent by user A may be as follows: Figure 2G For example, the first API request 2 sent by user B can be as follows Figure 2H shown.
[0107] After receiving the first API requests 1 and 2 (collectively referred to as the first API requests) from user A and user B, the polling service system 103 may perform an initial verification to check whether the transaction is from a legitimate user and source device. After successful verification, the polling service system 103 may parse the first API request to identify the requirements of the source devices 101A and 101B. Thereafter, based on the product ID, operation code, and pre-address ID provided in the first API request, the polling service system 103 determines the candidate application and the candidate application server 107 with which the source devices 101A and 101B wish to communicate, and the data transaction that the source devices 101A and 101B wish to perform with the candidate application server 107. In addition, based on the device type and device ID provided in the first API request, the polling service system 103 determines whether the source devices 101A and 101B are capable of processing such requirements, which means that such data transactions can be performed with the candidate application of the candidate application server 107. In this scenario, both source devices 101A and 101B are capable of supporting data transactions, and therefore the polling service system 103 generates a unique second endpoint (e.g., unique second endpoints 1 and 2) for each of the source devices 101A and 101B to communicate with the candidate application server 107. In addition, the polling service system 103 checks the geographic locations from which the source devices 101A and 101B receive the first API request. According to the predefined rules stored in the polling service system 103, the first 1000 requests received from the geographic location "Bangalore" should be allowed to access the new version, such as version 2.0 of the candidate application, to communicate with the candidate application server 107. Therefore, the polling service system 103 generates two unique first responses, such as unique first response 1 and unique first response 2 (collectively referred to as unique first responses), for the source devices 101A and 101B, and sends the unique first responses 1 and 2 to the corresponding source devices 101A and 101B. The unique first response 1 generated for the source device 101A may be as shown in FIG. Fig.2I shown.
[0108] The unique first response 2 generated for the source device 101B may be as follows: Figure 2J Source devices 101A and 101B may use the unique first response received thereby to generate a second API request 1 and a second API request 2 (collectively referred to as a second API request) respectively. The second API request 1 generated by source device 101A may be as shown in FIG. Figure 2K The second API request 2 generated by the source device 101B may be as follows: Figure 2L As shown. Both source devices 101A and 101B encrypt the dynamic payload forming the second API request. The second API request uses the encryption key received from the polling service system 103 to issue the encryption, which can be respectively as follows: Figure 2M and Figure 2N shown.
[0109] Source devices 101A and 101B then send a second API request with an encrypted payload to candidate application server 107. Candidate application server 107 may access polling database 105 and retrieve hint information 209 therefrom, which is then used to verify whether the second API request is from a trusted source and whether the second API request received through the corresponding unique second endpoint is a valid request. In this case, candidate application server 107 successfully authenticates source devices 101A and 101B, and the second API request received from source devices 101A and 101B, and therefore proceeds to perform the data transaction as indicated by the operation code specified in hint information 209. In this scenario, consider that the data transaction performed between source device 101A and candidate application server 107 is a data transaction of data element addition, and the data transaction performed between source device 101B and candidate application server 107 is a data transaction of retrieval of requested data. After performing the data transaction, candidate application server 107 sends second responses 1 and 2 to source devices 101A and 101B, respectively. In this scenario, the second response 1 to the source device 101A may be a confirmation after adding the data element, and the second response 2 to the source device 101B may be data retrieved as requested by the source device 101B.
[0110] Figure 3 The illustrated flow chart illustrates a method 300 of providing a dynamic endpoint for performing data transactions according to some non-limiting embodiments or aspects of the present disclosure.
[0111] The order in which method 300 is described is not intended to be construed as a limitation, and any number of the described method blocks may be combined in any order to implement method 300. Additionally, individual blocks may be deleted from the method without departing from the spirit and scope of the subject matter described herein. Furthermore, method 300 may be implemented in any suitable hardware, software, firmware, or combination thereof.
[0112] At block 301, the method 300 may include receiving, by the processor 109 of the polling service system 103, a first API request from one or more source devices 101 through a first endpoint. In some non-limiting embodiments or aspects, the first API request indicates a requirement for the one or more source devices 101 to perform one or more data transactions with corresponding candidate application servers 107. In some non-limiting embodiments or aspects, the first API request may include, but is not limited to, at least one of: a device identifier (ID) of the one or more source devices 101, an IP address associated with the one or more source devices 101, a latitude and longitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an operation code, a user ID, a pre-address ID, and metadata required to complete the one or more data transactions.
[0113] At block 303 , method 300 may include parsing, by processor 109 , a first API request for each of the one or more source devices 101 to identify requirements of the one or more source devices 101 .
[0114] At block 305, the method 300 may include generating, by the processor 109, a unique first response for each of the one or more source devices 101 based on the requirements corresponding to the one or more source devices 101. In some non-limiting embodiments or aspects, the unique first response generated for each of the one or more source devices 101 may include a unique second endpoint to facilitate one or more data transactions with the corresponding candidate application server 107. In some non-limiting embodiments or aspects, the unique first response may also include, but is not limited to, at least one of the following: parameters required to perform the one or more data transactions with the corresponding candidate application server 107, a unique transaction token for verification purposes, an encryption key, and one or more input fields for the API call. In some non-limiting embodiments or aspects, the processor 109 may verify the one or more source devices 101 before generating the unique first response based on the information in the first API request. In some non-limiting embodiments or aspects, the processor 109 may dynamically generate the unique second endpoint in response to each of the first API requests based on one or more predefined rules. The one or more predefined rules may be related to at least one of: a version of the corresponding candidate application that is favorable to the corresponding candidate application server 107, a criticality of the requirements of the one or more source devices 101, a geographic location of the one or more source devices 101, and a validity time of the unique second endpoint. In some non-limiting embodiments or aspects, the processor 109 may store the prompt information 209 corresponding to each generated unique first response in the polling database 105 associated with the polling service system 103. The prompt information 209 may include, but is not limited to, a transaction token provided to the one or more source devices 101 for verification purposes, and at least one of the following: an identifier of the one or more source devices 101, detailed information of the unique second endpoint to be provided to the one or more source devices 101, and an identifier of the corresponding candidate application server 107 that the one or more source devices 101 are allowed to access through the unique second endpoint.
[0115] At block 307, the method 300 may include sending, by the processor 109, a unique first response generated for each of the corresponding one or more source devices 101. In some non-limiting embodiments or aspects, each of the one or more source devices 101 uses the corresponding unique second endpoint to perform one or more data transactions with the corresponding candidate application server 107. The one or more source devices 101 may then send a second API request to the corresponding candidate application server 107 using the unique second endpoint received from the polling service system 103. In some non-limiting embodiments or aspects, the corresponding candidate application server 107 may receive the second API request from the one or more source devices 101 through the corresponding unique second endpoint. The second API request may include a dynamic payload that may or may not be encrypted, meaning that the second API request may include parameters and metadata required to perform one or more data transactions with the corresponding candidate application server 107. Upon receiving the second API request, the corresponding candidate application server 107 may verify whether the one or more source devices 101 are a trusted source and whether the second API request received through the corresponding unique second endpoint is a valid request. Upon successful verification, the corresponding candidate application server 107 may send a second response to the one or more source devices 101 through the corresponding unique second endpoint. In some non-limiting embodiments or aspects, after performing one or more data transactions, a second response may be generated. For example, the one or more data transactions may include, but are not limited to, data retrieval, data element modification, data element addition, data element deletion, and data element replacement. In some non-limiting embodiments or aspects, the second response may be related to one or more data transactions, and the one or more data transactions may include, but are not limited to, data retrieval, data element modification, data element addition, data element deletion, and data element replacement. For example, if the data transaction is a data retrieval operation, the corresponding candidate application server 107 may provide a second response including data requested by one or more source devices 101. For example, if the data transaction is related to data element addition, the corresponding candidate application server 107 may add / append the data element to the existing data associated with the corresponding candidate application server 107, and a confirmation of such addition may be provided as a second response to the one or more data transactions.
[0116] The present disclosure eliminates the dependency of each consumer on using a single endpoint in an external environment by providing two phases, a polling phase and a transaction phase, which may be vulnerable to attacks. The polling phase provides one or more source devices 101 with a dynamic endpoint for communicating with the corresponding candidate application server 107. Typically, there is no separate polling phase that provides a dynamic endpoint for interacting with the corresponding candidate application server 107. Instead, any source device can interact with the corresponding candidate application server 107 using a static endpoint. Since such static endpoints are widely used to interact with a specific candidate application server and are well known to users around the world, such static endpoints are threatened by the interception of outgoing requests in one or more source devices 101, thereby compromising data security. In the present disclosure, since the polling phase is introduced to provide a dynamic endpoint, the same candidate application server is represented by different dynamic endpoints for different requests. Therefore, the attacker cannot understand the destination of the dynamic endpoint, which means that the attacker will not be able to understand which candidate application server is being addressed using the dynamic endpoint. In addition, such dynamic endpoints may also be associated with a timeout period, which means that the dynamic endpoint is valid only within a certain period of time, during which one or more source devices 101 need to interact with the corresponding candidate application server 107 to perform data transactions. The timeout period can also be set dynamically and can be different for different requests. In addition, the dynamic endpoint is verified in real time by the corresponding candidate application server 107 based on the prompt information provided to the corresponding candidate application server 107 by the polling service system. Therefore, even before receiving a request from one or more source devices 101, the corresponding candidate application server 107 is very clear about the type of device communicating through which endpoint. Therefore, such a time-limited and real-time verified dynamic endpoint is difficult to be hacked or predicted, thereby reducing the interception of outgoing requests in the source device, thereby improving data security.
[0117] In addition, in the present disclosure, dynamic endpoints are used to transfer one or more source devices 101 to interact with the new version of the candidate application. The present disclosure achieves the same purpose by using predefined rules. For example, all API requests from a certain geographic location can be addressed to version 2 of the corresponding candidate application, while the rest can be addressed to the old code of the corresponding candidate application. Therefore, such dynamic endpoints combined with predefined rules ensure that a certain amount of API requests can be addressed to the updated version of the corresponding candidate application, thereby allowing developers to test the updated version of the corresponding candidate application in real time with a small number of users without affecting or interfering with the overall work of the old code. Therefore, the present disclosure provides a mechanism to ensure that different versions developed for old code are tested, which in turn can help to append the new version to the existing old code, or replace the old code with the new version, etc. This in turn helps users use new features, security updates, etc. on the existing old code. Therefore, the present disclosure enables real-time testing of different versions of old code on an incremental basis based on predefined rules.
[0118] Figure 4 is a block diagram of an exemplary computer system for implementing embodiments consistent with the present disclosure.
[0119] In some non-limiting embodiments or aspects, Figure 4 A block diagram of an exemplary computer system 400 for implementing embodiments consistent with the present disclosure is shown. In some non-limiting embodiments or aspects, the computer system 400 may be a polling service system 103 for providing a dynamic endpoint for performing data transactions. In some other embodiments, the computer system 400 may be a candidate application server 107. The computer system 400 may include a central processing unit ("CPU" or "processor") 402. The processor 402 may include at least one data processor for executing program components, which are used to perform business processes generated by users or systems. Users may include individuals, individuals using devices (such as those included in the present disclosure), or such devices themselves. The processor 402 may include a special-purpose processing unit, such as an integrated system (bus) controller, a memory management control unit, a floating point unit, a graphics processing unit, a digital signal processing unit, etc.
[0120] The processor 402 may be configured to communicate with an input device 411 and an output device 412 via an I / O interface 401. The I / O interface 401 may employ communication protocols / methods such as, but not limited to, audio, analog, digital, stereo, IEEE-1394, serial bus, Universal Serial Bus (USB), infrared, PS / 2, BNC, coaxial, component, composite, digital video interface (DVI), high-definition multimedia interface (HDMI), radio frequency (RF) antenna, S-Video, video graphics array (VGA), IEEE 802.n / b / g / n / x, Cellular (e.g., Code Division Multiple Access (CDMA), High Speed Packet Access (HSPA+), Global System for Mobile Communications (GSM), Long Term Evolution (LTE), The computer system 400 can communicate with an input device 411 and an output device 412 using an I / O interface 401 .
[0121] In some non-limiting embodiments or aspects, the processor 402 can be configured to communicate with the communication network 409 via the network interface 403. The network interface 403 can communicate with the communication network 409. The network interface 403 can use a connection protocol, including but not limited to direct connection, Ethernet (e.g., twisted pair 10 / 100 / 1000Base T), Transmission Control Protocol / Internet Protocol (TCP / IP), Token Ring, IEEE 802.11a / b / g / n / x, etc. Using the network interface 403 and the communication network 409, the computer system 400 can communicate with one or more source devices 1011 to 101 n In parallel, the polling database 105 communicates with the candidate application server 107. The communication network 409 can be implemented as one of different types of networks, such as an intranet or local area network (LAN), a closed area network (CAN), etc. The communication network 409 can be a dedicated network or a shared network, which represents an association of different types of networks that communicate with each other using various protocols, such as hypertext transfer protocol (HTTP), transmission control protocol / Internet protocol (TCP / IP), wireless application protocol (WAP), etc. In addition, the communication network 409 may include various network devices, including routers, bridges, servers, computing devices, storage devices, etc. In some non-limiting embodiments or aspects, the processor 402 may be configured to communicate with the memory 405 (for example, via the storage interface 404). Figure 4The storage interface 404 can be connected to the memory 405, including but not limited to a memory drive, a removable optical drive, etc., and the memory uses a connection protocol such as Serial Advanced Technology Attachment (SATA), Integrated Drive Electronics (IDE), IEEE-1394, USB, Fibre Channel, Small Computer System Interface (SCSI), etc. The memory drive may also include a drum, a magnetic disk drive, a magneto-optical disk drive, an optical disk drive, a redundant array of independent disks (RAID), a solid-state memory device, a solid-state drive, etc.
[0122] The memory 405 may store a collection of program or database components, including but not limited to a user interface 406, an operating system 407, a web browser 408, etc. In some non-limiting embodiments or aspects, the computer system 400 may store user / application data, such as data, variables, records, etc., as described in the present disclosure. Such a database may be implemented as a fault-tolerant, relational, scalable and / or secure database, such as Oracle or Sybase.
[0123] Operating system 407 may facilitate resource management and operation of computer system 400. Examples of operating systems include, but are not limited to, OS UNIX-like distributions (e.g., BERKELEYSOFTWARE (BSD), OPENBSD, etc.), DISTRIBUTIONS (e.g., RED wait), ( / 7 / 8, 10, etc.), GOOGLE TM ANDROID TM , OS, etc. The user interface 406 can facilitate the display, execution, interaction, manipulation, or operation of program components through text and / or graphical facilities. For example, the user interface can provide computer interaction interface elements such as cursors, icons, check boxes, menus, scroll bars, windows, widgets, etc. on a display system operably connected to the computer system 400. A graphical user interface (GUI) can be used, including but not limited to Operating System (e.g., Aero, Metro, etc.), network interface libraries (e.g., AJAX, HTML, etc.
[0124] In some non-limiting embodiments or aspects, computer system 400 may implement a program component stored in a web browser. Web browser 408 may be a hypertext viewing application such as INTERNET GOOGLE TM CHROME T , etc. Secure web browsing can be provided using Hypertext Transfer Protocol Secure (HTTPS), Secure Sockets Layer (SSL), Transport Layer Security (TLS), etc. The web browser 408 can use, for example, AJAX, DHTML, In some non-limiting embodiments or aspects, the computer system 400 may implement a program component stored in a mail server. The mail server may be an Internet mail server, such as Microsoft Exchange, etc. The mail server may use, for example, Active Server Pages (ASP), C++ / C#, .NET、CGI SCRIPTS、 PHP, The mail server can use tools such as Internet Message Access Protocol (IMAP), Messaging Application Programming Interface (MAPI), Exchange, Post Office Protocol (POP), Simple Mail Transfer Protocol (SMTP), and other communication protocols. In some non-limiting embodiments or aspects, the computer system 400 can implement a program component stored in a mail client. The mail client can be a mail viewing application, such as MAIL, wait.
[0125] In addition, one or more computer-readable storage media can be used to implement embodiments consistent with the present disclosure. Computer-readable storage media refers to any type of physical memory that can store information or data that can be read by a processor. Therefore, a computer-readable storage medium can store instructions executed by one or more processors, including instructions that cause the processor to execute steps or stages consistent with the embodiments described herein. The term "computer-readable medium" should be understood to include tangible items and does not include carrier waves and transient signals, such as non-transient ones. Examples include random access memory (RAM), read-only memory (ROM), volatile memory, non-volatile memory, hard disk drive, compact disk (CD) ROM, digital video disk (DVD), flash drive, disk, and any other known physical storage medium.
[0126] The described operations can be implemented as methods, systems or products for manufacturing software, firmware, hardware or any combination thereof using standard programming and / or engineering techniques. The described operations can be implemented as codes maintained in a "non-transient computer-readable medium", where a processor can read and execute the code from the computer-readable medium. The processor is at least one of a microprocessor and a processor capable of processing and executing queries. Non-transient computer-readable media can include media such as magnetic storage media (e.g., hard disk drives, floppy disks, tapes, etc.), optical storage devices (CD-ROMs, DVDs, optical disks, etc.), volatile and non-volatile memory devices (e.g., EEPROMs, ROMs, PROMs, RAMs, DRAMs, SRAMs, flash memory, firmware, programmable logic, etc.). In addition, non-transient computer-readable media include all computer-readable media except transient. The code implementing the described operations can be further implemented in hardware logic (e.g., integrated circuit chips, programmable gate arrays (PGAs), application-specific integrated circuits (ASICs), etc.).
[0127] An "article of manufacture" includes a non-transitory computer-readable medium and / or hardware logic in which code may be implemented. A device in which code implementing the described operational embodiments is encoded may include a computer-readable medium or hardware logic. Of course, those skilled in the art will recognize that many modifications may be made to this configuration without departing from the scope of the present disclosure, and that the article of manufacture may include suitable information bearing media known in the art.
[0128] Unless explicitly specified otherwise, the terms "some non-limiting embodiments or aspects," "embodiments," "multiple embodiments," "described embodiments," "described multiple embodiments," "one or more embodiments," "some non-limiting embodiments or aspects," and "certain non-limiting embodiments or aspects" mean "one or more (but not all) embodiments of the present disclosure." The description of some non-limiting embodiments or aspects with several components in communication with each other does not mean that all of these components are required. Instead, various optional components are described to illustrate various possible embodiments of the present disclosure.
[0129] Unless expressly specified otherwise, the terms "including / comprising," "having," and variations thereof mean "including but not limited to." Unless expressly specified otherwise, an enumerated list of items does not mean that any or all of the items are mutually exclusive. Unless expressly specified otherwise, the terms "a / an," and "the" mean "one or more." The description of some non-limiting embodiments or aspects with several components in communication with each other does not mean that all of these components are required. Instead, various optional components are described to illustrate various possible embodiments of the present disclosure.
[0130] Figure 3 The operations shown in the figure illustrate certain events that occur in a certain order. In alternative embodiments, certain operations may be performed, modified, or removed in different orders. In addition, steps may be added to the logic described above, and the steps may still conform to the described embodiments. In addition, the operations described herein may be performed in order, or certain operations may be processed in parallel. However, the operations may be performed by a single processing unit or a distributed processing unit.
[0131] Finally, the language used in the specification is selected primarily for readability and didactic purposes, and is not selected to delimit or limit the subject matter of the invention. It is therefore intended that the scope of the present disclosure is not limited by this specific embodiment, but rather by any claims issued on applications based on the present disclosure. Therefore, the disclosure of the embodiments of the present disclosure is intended to be illustrative, rather than limiting, of the scope of the present disclosure set forth in the appended claims.
[0132] The description of some non-limiting embodiments or aspects with several components in communication with each other does not mean that all of these components are required. Instead, various optional components are described to illustrate various possible embodiments of the present disclosure.
[0133] While various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope and spirit being indicated by the following claims.
Claims
1. A computer-implemented method comprising: Receiving, by the polling service system, a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing, by the polling service system, the first API request of each of the one or more source devices to identify the requirements of the one or more source devices; generating, by the polling service system, a unique first response for each of the one or more source devices based on the requirement corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint for facilitating the one or more data transactions with the corresponding candidate application server; as well as sending, by the polling service system, the unique first response generated for each of the corresponding one or more source devices, wherein each of the one or more source devices performs the one or more data transactions with the corresponding candidate application server using the corresponding unique second endpoint; wherein the unique first response further includes at least one of: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for authentication purposes, an encryption key, one or more input fields for an API call, or any combination thereof; as well as wherein the unique second endpoint is dynamically generated in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirement of the one or more source devices, a geographic location of the one or more source devices, an effective time of the unique second endpoint, or any combination thereof. 2 . The computer-implemented method of claim 1 , wherein the one or more source devices are authenticated prior to generating the unique first response.
3. The computer-implemented method of claim 1 , further comprising storing, by the polling service system, prompt information corresponding to each of the generated unique first responses, wherein the prompt information comprises a unique transaction token provided to the one or more source devices for verification purposes, and at least one of: an identifier of the one or more source devices, detailed information of the unique second endpoint to be provided to the one or more source devices, an identifier of the corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint, or any combination thereof.
4. The computer-implemented method of claim 1 , wherein the first API request comprises at least one of: a device identifier (ID) of the one or more source devices, an Internet Protocol (IP) address associated with the one or more source devices, a latitude and longitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an opcode, a user ID, a pre-address ID, metadata required to complete the one or more data transactions, or any combination thereof.
5. The computer-implemented method of claim 1 , further comprising: receiving, by the corresponding candidate application server from the one or more source devices through the corresponding unique second endpoint, a second API request, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; Verified by the corresponding candidate application server: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; as well as After successful verification, a second response is sent by the corresponding candidate application server to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof, and wherein the second response includes at least one of a confirmation related to the one or more data transactions and data related to the one or more data transactions.
6. The computer-implemented method of claim 5, wherein the verifying comprises: Retrieving, by the corresponding candidate application server, prompt information related to the corresponding candidate application server from a polling database associated with the polling service system; as well as The prompt information is compared, by the corresponding candidate application server, to a corresponding unique transaction token present in the second API request of the one or more source devices to determine a match.
7. The computer-implemented method of claim 6, further comprising, if the comparing determines the match or the mismatch, performing, by the corresponding candidate application server, one of the following: accepting the second API request or rejecting the second API request, respectively.
8. A polling service system, comprising: processor; as well as a memory communicatively coupled to the processor, wherein the memory stores processor instructions that, when executed, cause the processor to: receiving a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing the first API request of each of the one or more source devices to identify the requirements of the one or more source devices; generating a unique first response for each of the one or more source devices based on the requirements corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint to facilitate the one or more data transactions with the corresponding candidate application server; as well as sending the unique first response generated for each of the corresponding one or more source devices, wherein each of the one or more source devices performs the one or more data transactions with the corresponding candidate application server using the corresponding unique second endpoint; wherein the unique first response further includes at least one of: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for authentication purposes, an encryption key, one or more input fields for an API call, or any combination thereof; as well as wherein the unique second endpoint is dynamically generated in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirement of the one or more source devices, a geographic location of the one or more source devices, an effective time of the unique second endpoint, or any combination thereof.
9. The polling service system of claim 8, wherein the one or more source devices are authenticated before generating the unique first response.
10. The polling service system of claim 8, wherein the processor is further configured to store prompt information corresponding to each of the generated unique first responses, wherein the prompt information includes a unique transaction token provided to the one or more source devices for verification purposes, and at least one of: an identifier of the one or more source devices, detailed information of the unique second endpoint to be provided to the one or more source devices, an identifier of the corresponding candidate application server that the one or more source devices are allowed to access through the unique second endpoint, or any combination thereof.
11. The polling service system of claim 8, wherein the first API request comprises at least one of: a device identifier (ID) of the one or more source devices, an Internet Protocol (IP) address associated with the one or more source devices, a latitude and longitude associated with the IP address, a device score, a device type, an initial base token, a product ID, an operation code, a user ID, a pre-address ID, metadata required to complete the one or more data transactions, or any combination thereof.
12. The polling service system of claim 8, wherein the corresponding candidate application server associated with the polling service system is configured to: receiving a second API request from the one or more source devices via the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verify: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; as well as After successful authentication, a second response to the one or more source devices is sent through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof, and wherein the second response includes at least one of a confirmation related to the one or more data transactions and data related to the one or more data transactions.
13. The polling service system according to claim 12, wherein for verification, the corresponding candidate application server is configured to: retrieving prompt information related to the corresponding candidate application server from a polling database associated with the polling service system; and The prompt information is compared to a corresponding unique transaction token present in the second API request of the one or more source devices to determine a match.
14. The polling service system according to claim 13, wherein in a case where the comparison determines the match or the mismatch, the corresponding candidate application server respectively performs one of the following: accepting the second API request or rejecting the second API request.
15. A non-transitory computer-readable medium comprising instructions stored thereon, which when processed by at least one processor cause a polling service system to perform operations comprising: receiving a first application programming interface (API) request from one or more source devices via a first endpoint, wherein the first API request indicates a requirement for the one or more source devices to perform one or more data transactions with a corresponding candidate application server; parsing the first API request of each of the one or more source devices to identify the requirements of the one or more source devices; generating a unique first response for each of the one or more source devices based on the requirements corresponding to the one or more source devices, wherein the unique first response generated for each of the one or more source devices includes a unique second endpoint to facilitate the one or more data transactions with the corresponding candidate application server; as well as sending the unique first response generated for each of the corresponding one or more source devices, wherein each of the one or more source devices performs the one or more data transactions with the corresponding candidate application server using the corresponding unique second endpoint; wherein the unique first response further includes at least one of: parameters required to perform the one or more data transactions with the corresponding candidate application server, and a unique transaction token for authentication purposes, an encryption key, one or more input fields for an API call, or any combination thereof; as well as wherein the unique second endpoint is dynamically generated in response to each of the first API requests based on one or more predefined rules, wherein the one or more predefined rules are related to at least one of: a version of the corresponding candidate application that favors the corresponding candidate application server, a criticality of the requirement of the one or more source devices, a geographic location of the one or more source devices, an effective time of the unique second endpoint, or any combination thereof.
16. The medium of claim 15, wherein the instructions cause the corresponding candidate application server associated with the polling service system to: receiving a second API request from the one or more source devices via the corresponding unique second endpoint, wherein the second API request includes parameters and metadata required to perform the one or more data transactions with the corresponding candidate application server; verify: whether the one or more source devices are trusted sources, and whether the second API request received through the corresponding unique second endpoint is a valid request; as well as After successful authentication, a second response is sent to the one or more source devices through the corresponding unique second endpoint, wherein the second response is generated after performing the one or more data transactions including at least one of the following: data retrieval, data element modification, data element addition, data element deletion, data element replacement or any combination thereof.
