# US 2021/0334149 A1 · Api adapter creation device, api adapter creation method, and api adapter creation program

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

- Number: US 2021/0334149 A1
- Document ID: US20210334149A1
- Status: Published application
- Kind: A1
- Application number: 17/264,589
- Filed: 2019-07-12
- Published: 2021-10-28
- Earliest claimed: 2018-08-02
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Naoki TAKE; Kensuke TAKAHASHI; Tomoki IKEGAYA; Nobuo ONAI; Miwaka OTANI; Hiroshi KATO
- Web page: https://patentgrep.com/patent/US20210334149A1

## CPC

- G06F 8/36: Software reuse
- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 8/311: {Functional or applicative languages; Rewrite languages}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

[Problem] An API adapter of a wholesale service provided in a coordination execution apparatus of a wholesale service. [Solution] An API adapter creation apparatus 100 is configured to accept, from a developing engineer, a setting of an execution order of a wholesale service API invoked by internal processing of an adapter API provided by an API adapter, a setting of a request parameter of the adapter API serving as an acquisition source of a request parameter of the wholesale service API, and a setting of a response parameter of the adapter API serving as a reflection destination of a response parameter of the wholesale service API. The API adapter creation apparatus 100 generates a source code based on the accepted settings.

## Claims

### Claim 1

An Application Program Interface (API) adapter creation apparatus configured to create an adapter API provided by an API adapter of a plurality of wholesale services, the API adapter provided in a multi-service coordination execution apparatus configured to construct a coordinated service in which the wholesale services are combined, the API adapter creation apparatus comprising:
an API execution order setting unit, including one or more processors, configured to accept a setting of an execution order of a wholesale service API indicating an API of the wholesale service invoked by internal processing of the adapter API;
an API request parameter acquisition source setting unit, including one or more processors, configured to accept a setting of a request parameter of the adapter API serving as an acquisition source of a request parameter of the wholesale service API;
an API response parameter reflection destination setting unit, including one or more processors, configured to accept a setting of a response parameter of the adapter API serving as a reflection destination of a response parameter of the wholesale service API; and
a source code generation unit, including one or more processors, configured to generate a source code of the adapter API based on the setting of the execution order, the setting of the acquisition source, and the setting of the reflection destination.

### Claim 2 (depends on 1)

The API adapter creation apparatus according to claim 1, further comprising:
an API execution condition setting unit, including one or more processors, configured to accept a setting of an execution condition for execution of the wholesale service API,
wherein the source code generation unit is configured to generate a source code of the adapter API including content of the setting of the execution condition.

### Claim 3 (depends on 1)

The API adapter creation apparatus according to claim 1, further comprising:
an API iteration condition setting unit, including one or more processors, configured to accept a setting of an iteration condition for iterative execution of the wholesale service API,
wherein the source code generation unit is configured to generate a source code of the adapter API including content of the setting of the iteration condition.

### Claim 4 (depends on 1)

The API adapter creation apparatus according to claim 1, further comprising:
an API request/response parameter design support unit, including one or more processors, configured to set, when specification of a request parameter of the wholesale service API is accepted, a request parameter of the adapter API having an identical name to that of the request parameter as an acquisition source, and to set, when specification of a response parameter of the wholesale service API is accepted, a response parameter of the adapter API having an identical name to that of the response parameter as a reflection destination,
wherein the source code generation unit is configured to generate a source code of the adapter API that includes content of the setting of the acquisition source and the reflection destination set by the API request/response parameter design support unit.

### Claim 5

An API adapter creation method of an API adapter creation apparatus configured to create an adapter API provided by an API adapter of a plurality of wholesale services, the API adapter provided in a multi-service coordination execution apparatus configured to construct a coordinated service in which the wholesale services are combined, the API adapter creation method comprising:
accepting a setting of an execution order of a wholesale service API indicating an API of the wholesale service invoked by internal processing of the adapter API;
accepting a setting of a request parameter of the adapter API serving as an acquisition source of a request parameter of the wholesale service API;
accepting a setting of a response parameter of the adapter API serving as a reflection destination of a response parameter of the wholesale service API; and
generating a source code of the adapter API based on the setting of the execution order, the setting of the acquisition source, and the setting of the reflection destination.

### Claim 6

A non-transitory computer readable medium storing one or more instructions for causing a computer to function as an API adapter creation apparatus configured to create an adapter API provided by an API adapter of a plurality of wholesale services, the API adapter provided in a multi-service coordination execution apparatus configured to construct a coordinated service in which the wholesale services are combined, the one or more instructions causing the computer to execute:
accepting a setting of an execution order of a wholesale service API indicating an API of the wholesale service invoked by internal processing of the adapter API;
accepting a setting of a request parameter of the adapter API serving as an acquisition source of a request parameter of the wholesale service API;
accepting a setting of a response parameter of the adapter API serving as a reflection destination of a response parameter of the wholesale service API; and
generating a source code of the adapter API based on the setting of the execution order, the setting of the acquisition source, and the setting of the reflection destination.

### Claim 7 (depends on 5)

The API adapter creation method according to claim 5, further comprising:
accepting a setting of an execution condition for execution of the wholesale service API,
wherein generating a source code of the adapter API comprises generating a source code of the adapter API including content of the setting of the execution condition.

### Claim 8 (depends on 5)

The API adapter creation method according to claim 5, further comprising:
accepting a setting of an iteration condition for iterative execution of the wholesale service API,
wherein generating a source code of the adapter API comprises generating a source code of the adapter API including content of the setting of the iteration condition.

### Claim 9 (depends on 5)

The API adapter creation method according to claim 5, further comprising:
setting, when specification of a request parameter of the wholesale service API is accepted, a request parameter of the adapter API having an identical name to that of the request parameter as an acquisition source, and to set, when specification of a response parameter of the wholesale service API is accepted, a response parameter of the adapter API having an identical name to that of the response parameter as a reflection destination,
wherein generating a source code of the adapter API comprises generating a source code of the adapter API that includes content of the setting of the acquisition source and the reflection destination.

### Claim 10 (depends on 6)

The non-transitory computer readable medium according to claim 6, wherein the one or more instructions further cause the computer to execute:
accepting a setting of an execution condition for execution of the wholesale service API,
wherein generating a source code of the adapter API comprises generating a source code of the adapter API including content of the setting of the execution condition.

### Claim 11 (depends on 6)

The non-transitory computer readable medium according to claim 6, the one or more instructions further cause the computer to execute:
accepting a setting of an iteration condition for iterative execution of the wholesale service API,
wherein generating a source code of the adapter API comprises generating a source code of the adapter API including content of the setting of the iteration condition.

### Claim 12 (depends on 6)

The non-transitory computer readable medium according to claim 6, the one or more instructions further cause the computer to execute:
setting, when specification of a request parameter of the wholesale service API is accepted, a request parameter of the adapter API having an identical name to that of the request parameter as an acquisition source, and to set, when specification of a response parameter of the wholesale service API is accepted, a response parameter of the adapter API having an identical name to that of the response parameter as a reflection destination,
wherein generating a source code of the adapter API comprises generating a source code of the adapter API that includes content of the setting of the acquisition source and the reflection destination.
