# US 2024/0202049 A1 · Gateway apparatus and method for dynamically applying api settings

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0202049 A1
- Document ID: US20240202049A1
- Status: Published application
- Kind: A1
- Application number: 18/494,767
- Filed: 2023-10-25
- Published: 2024-06-20
- Earliest claimed: 2022-12-20
- Assignees: Webare Soft Inc
- Applicants: Webare Soft Inc.
- Inventors: Young Hwi JANG; Yeon Ju LEE; Yong Hyuk KIM
- Web page: https://patentgrep.com/patent/US20240202049A1

## CPC

- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A gateway apparatus and a method for dynamically applying API settings are disclosed. The gateway apparatus includes a sub-processing unit processing an API (application programming interface) request of a client terminal based on API settings through a plurality of sub-threads, a setting unit comprising a first rule table and a second rule table to store a set value for processing the API request, and a reference flag, and a main processing unit updating new API settings in a rule table other than the rule table corresponding to a reference value of the reference flag through a main thread when receiving the new API settings, and setting the reference value of the reference flag to a reference value corresponding to the updated rule table when the update is completed.

## Claims

### Claim 1

A gateway apparatus comprising:
a sub-processing unit processing an API (application programming interface) request of a client terminal based on API settings through a plurality of sub-threads;
a setting unit comprising a first rule table and a second rule table to store a set value for processing the API request, and a reference flag; and
a main processing unit updating new API settings in a rule table other than the rule table corresponding to a reference value of the reference flag through a main thread when receiving the new API settings, and setting the reference value of the reference flag to a reference value corresponding to the updated rule table when the update is completed,
wherein the setting unit comprises:
the first rule table storing the API settings for processing the API request;
the second rule table storing API settings different from those of the first rule table; and
the reference flag setting a reference value indicating the rule table in which the API settings to be referenced by the plurality of sub-threads so as to process the API request at a current time are stored, among the first rule table and the second rule table.

### Claim 2 (depends on 1)

The gateway apparatus of claim 1, wherein the sub-processing unit checks the reference value of the reference flag prior to processing the API request, and processes the API request based on the API settings stored in the rule table indicated by the reference value.

### Claim 3 (depends on 1)

The gateway apparatus of claim 1, wherein the first rule table and the second rule table give a read function to the plurality of sub-threads, and give read and write functions to the main thread.

### Claim 4 (depends on 1)

The gateway apparatus of claim 1, wherein each of the first rule table and the second rule table is created as a global data structure.

### Claim 5 (depends on 1)

The gateway apparatus of claim 1, wherein the main processing unit initializes the rule table where update is performed, and then performs the update by storing the new API settings.

### Claim 6 (depends on 1)

The gateway apparatus of claim 1, wherein the main processing unit determines whether there are any changes by comparing the new API settings with the current API settings, and performs the update if there are changes.

### Claim 7

An API setting method of a gateway apparatus comprising a first rule table and a second rule table each storing API settings for processing the API request, and a reference flag setting a reference value indicating the rule table in which the API settings are stored to process the API request at a current time, among the first rule table and the second rule table, the method comprising:
receiving, by a main processing unit of the gateway apparatus, new API settings from an API manager device;
updating, by the main processing unit, the new API settings in a rule table other than the rule table corresponding to the reference value of the reference flag;
setting, by the main processing unit, the reference value of the reference flag to a reference value corresponding to the updated rule table; and
processing, by a sub-processing unit of the gateway apparatus, the API request based on API settings of the rule table corresponding to the reference value of the reference flag.

### Claim 8 (depends on 7)

The API setting method of claim 7, wherein the updating the new API settings initializes the rule table where update is performed, and then performs the update by storing the new API settings.

### Claim 9 (depends on 7)

The API setting method of claim 7, wherein the updating the new API settings determines whether there are any changes by comparing the new API settings with the current API settings, and performs the update if there are changes.

### Claim 10 (depends on 7)

The API setting method of claim 7, wherein the processing the API request checks the reference value of the reference flag prior to processing the API request, and processes the API request based on the API settings stored in the rule table indicated by the reference value.

### Claim 11 (depends on 7)

The API setting method of claim 7, wherein the first rule table and the second rule table give a read function to the plurality of sub-threads, and give read and write functions to the main thread.

### Claim 12 (depends on 7)

The API setting method of claim 7, wherein each of the first rule table and the second rule table is created as a global data structure.

### Claim 13

An API setting system comprising:
at least one gateway apparatus mediating a communication linkage between a plurality of client terminals and a plurality of target servers, and managing API settings for processing an API request; and
an API manager device providing the API settings to the gateway apparatus at a preset period,
wherein the gateway apparatus comprises:
a sub-processing unit processing an API request of a client terminal based on API settings through a plurality of sub-threads;
a setting unit comprising a first rule table and a second rule table to store a set value for processing the API request, and a reference flag; and
a main processing unit updating new API settings in a rule table other than the rule table corresponding to a reference value of the reference flag through a main thread when receiving the new API settings, and setting the reference value of the reference flag to a reference value corresponding to the updated rule table when the update is completed,
wherein the setting unit comprises:
the first rule table storing the API settings for processing the API request;
the second rule table storing API settings different from those of the first rule table; and
the reference flag setting a reference value indicating the rule table in which the API settings to be referenced by the plurality of sub-threads so as to process the API request at a current time are stored, among the first rule table and the second rule table.

### Claim 14 (depends on 13)

The API setting system of claim 13, wherein the sub-processing unit checks the reference value of the reference flag prior to processing the API request, and processes the API request based on the API settings stored in the rule table indicated by the reference value.

### Claim 15 (depends on 13)

The API setting system of claim 13, wherein the first rule table and the second rule table give a read function to the plurality of sub-threads, and give read and write functions to the main thread.

### Claim 16 (depends on 13)

The API setting system of claim 13, wherein each of the first rule table and the second rule table is created as a global data structure.

### Claim 17 (depends on 13)

The API setting system of claim 13, wherein the main processing unit initializes the rule table where update is performed, and then performs the update by storing the new API settings.

### Claim 18 (depends on 13)

The API setting system of claim 13, wherein the main processing unit determines whether there are any changes by comparing the new API settings with the current API settings, and performs the update if there are changes.
