JP2013145436A - Control apparatus for api, control method for api and program - Google Patents

Control apparatus for api, control method for api and program Download PDF

Info

Publication number
JP2013145436A
JP2013145436A JP2012004977A JP2012004977A JP2013145436A JP 2013145436 A JP2013145436 A JP 2013145436A JP 2012004977 A JP2012004977 A JP 2012004977A JP 2012004977 A JP2012004977 A JP 2012004977A JP 2013145436 A JP2013145436 A JP 2013145436A
Authority
JP
Japan
Prior art keywords
api
information
conversion
necessity
processing device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2012004977A
Other languages
Japanese (ja)
Other versions
JP5473022B2 (en
Inventor
Masashi Kondo
正史 近藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Biglobe Inc
Original Assignee
NEC Biglobe Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Biglobe Ltd filed Critical NEC Biglobe Ltd
Priority to JP2012004977A priority Critical patent/JP5473022B2/en
Publication of JP2013145436A publication Critical patent/JP2013145436A/en
Application granted granted Critical
Publication of JP5473022B2 publication Critical patent/JP5473022B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a control apparatus enabling systems with different specifications to use a common API.SOLUTION: A control apparatus includes: storage means for storing necessity information that shows necessity of first conversion for converting transmission information from a processor into an input format for an API and necessity of second conversion for converting output information from the API into an input format for the processor, upon associating the information with an identifier for identifying the processor or a user of the processor; first conversion means for, when receiving the transmission information including the identifier from the processor, referring to the necessity information corresponding to the identifier, and transmitting the transmission information to the API after converting it into the input format for the API if the first conversion for the transmission information is necessary, or transmitting the transmission information to the API if the first conversion for the transmission information is unnecessary; and second conversion means for, when receiving the output information from the API, transmitting the output information to the processor after converting it into the input format for the processor if the second conversion for the output information is necessary, or transmitting the output information to the processor if the second conversion for the output information is unnecessary.

Description

本発明は、API(Application Program Interface)用制御装置、API用制御方法およびプログラムに関する。   The present invention relates to an API (Application Program Interface) control device, an API control method, and a program.

現在、種々のAPIが知られている(特許文献1参照)。APIは、アプリケーションの開発や改修を行う際に使用される。   Currently, various APIs are known (see Patent Document 1). The API is used when developing or modifying an application.

特開2009−244976号公報JP 2009-244976 A

例えば、既存のAPIを使用しているシステム(以下「システムA」と称する)に、システムAとは仕様が異なるシステム(以下「システムB」と称する)を接続する場合、システムBは、例えばシステムAとのコード体系の違いにより、システムAが使用している既存のAPIをそのまま使用できない可能性がある。   For example, when a system (hereinafter referred to as “system B”) having a specification different from that of the system A is connected to a system using an existing API (hereinafter referred to as “system A”), the system B is, for example, a system Due to the difference in the code system from A, there is a possibility that the existing API used by the system A cannot be used as it is.

この場合、既存のAPIと同様の機能を有しシステムBの仕様(例えばシステムBのコード体系)に適応する新たなAPIが作成され、その新たなAPIがシステムA内に組み込まれることになる。   In this case, a new API having the same function as the existing API and adapted to the specification of the system B (for example, the code system of the system B) is created, and the new API is incorporated into the system A.

このため、新たなAPIの開発および実装に伴う開発コストの増大、システム統合に要する期間の長期化、および、同様の機能を有するAPIが複数作られることによるアプリケーションの構成の管理の煩雑さが生じる。   For this reason, the development cost associated with the development and implementation of a new API, the length of time required for system integration, and the complexity of managing the application configuration due to the creation of a plurality of APIs having similar functions arise. .

このため、仕様の異なるシステムでも共通のAPIを使用可能にするための手法が望まれるという課題があった。   For this reason, there has been a problem that a technique for enabling use of a common API even in systems with different specifications is desired.

本発明の目的は、上述した課題を解決可能なAPI用制御装置、API用制御方法およびプログラムを提供することである。   An object of the present invention is to provide an API control device, an API control method, and a program that can solve the above-described problems.

本発明のAPI用制御装置は、
APIと、前記APIを動作させるための送信情報を送信する処理装置と、の間の通信を制御するAPI用制御装置であって、
前記送信情報を前記API用の入力形式に変換する第1変換処理の要否と、前記APIからの出力情報を前記処理装置用の入力形式に変換する第2変換処理の要否と、を表す要否情報を、前記処理装置または前記処理装置の利用者を識別する識別子と対応づけて記憶する記憶手段と、
前記処理装置から前記識別子を含む前記送信情報を受信すると、前記要否情報のうち、前記送信情報に含まれる識別子に対応する該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する第1変換手段と、
前記APIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換して前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記処理装置に送信する第2変換手段と、を含む。
The API control device of the present invention includes:
An API control device that controls communication between an API and a processing device that transmits transmission information for operating the API,
The necessity of the first conversion processing for converting the transmission information into the input format for the API and the necessity of the second conversion processing for converting the output information from the API into the input format for the processing device are indicated. Storage means for storing necessity information in association with an identifier for identifying the processing device or a user of the processing device;
When the transmission information including the identifier is received from the processing device, the necessity information corresponding to the identifier included in the transmission information among the necessity information needs the first conversion process for the transmission information. The transmission information is converted into the API input format and transmitted to the API, and the corresponding necessity information indicates that the first conversion process is not necessary for the transmission information. First conversion means for transmitting the transmission information to the API;
When the output information is received from the API, the output information is converted into an input format for the processing device when the corresponding necessity information indicates that the second conversion processing is necessary for the output information. And second conversion means for transmitting the output information to the processing device when the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information. .

本発明のAPI用制御方法は、
APIと、前記APIを動作させるための送信情報を送信する処理装置と、の間の通信を制御するAPI用制御装置でのAPI用制御方法であって、
前記送信情報を前記API用の入力形式に変換する第1変換処理の要否と、前記APIからの出力情報を前記処理装置用の入力形式に変換する第2変換処理の要否と、を表す要否情報を、前記処理装置または前記処理装置の利用者を識別する識別子と対応づけて記憶手段に記憶する記憶ステップと、
前記処理装置から前記識別子を含む前記送信情報を受信すると、前記要否情報のうち、前記送信情報に含まれる識別子に対応する該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する第1変換ステップと、
前記APIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換して前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記処理装置に送信する第2変換ステップと、を含む。
The API control method of the present invention includes:
An API control method in an API control device that controls communication between an API and a processing device that transmits transmission information for operating the API,
The necessity of the first conversion processing for converting the transmission information into the input format for the API and the necessity of the second conversion processing for converting the output information from the API into the input format for the processing device are indicated. A storage step of storing necessity information in a storage unit in association with an identifier for identifying the processing device or a user of the processing device;
When the transmission information including the identifier is received from the processing device, the necessity information corresponding to the identifier included in the transmission information among the necessity information needs the first conversion process for the transmission information. The transmission information is converted into the API input format and transmitted to the API, and the corresponding necessity information indicates that the first conversion process is not necessary for the transmission information. A first conversion step of transmitting the transmission information to the API;
When the output information is received from the API, the output information is converted into an input format for the processing device when the corresponding necessity information indicates that the second conversion processing is necessary for the output information. And a second conversion step of transmitting the output information to the processing device when the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information. .

本発明のプログラムは、コンピュータに、
APIを動作させるための送信情報を前記API用の入力形式に変換する第1変換処理の要否と、前記APIからの出力情報を処理装置用の入力形式に変換する第2変換処理の要否と、を表す要否情報を、前記処理装置または前記処理装置の利用者を識別する識別子と対応づけて記憶手段に記憶する記憶手順と、
前記処理装置から前記識別子を含む前記送信情報を受信すると、前記要否情報のうち、前記送信情報に含まれる識別子に対応する該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する第1変換手順と、
前記APIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換して前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記処理装置に送信する第2変換手順と、を実行させる。
The program of the present invention is stored in a computer.
Necessity of first conversion processing for converting transmission information for operating API into the input format for API, and necessity of second conversion processing for converting output information from API into input format for processing device And a storage procedure for storing necessity information representing the storage device in association with an identifier for identifying the processing device or a user of the processing device;
When the transmission information including the identifier is received from the processing device, the necessity information corresponding to the identifier included in the transmission information among the necessity information needs the first conversion process for the transmission information. The transmission information is converted into the API input format and transmitted to the API, and the corresponding necessity information indicates that the first conversion process is not necessary for the transmission information. A first conversion procedure for transmitting the transmission information to the API;
When the output information is received from the API, the output information is converted into an input format for the processing device when the corresponding necessity information indicates that the second conversion processing is necessary for the output information. A second conversion procedure for transmitting the output information to the processing device when the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information. Let

本発明によれば、仕様の異なるシステムでも共通のAPIを使用することが可能になる。   According to the present invention, it is possible to use a common API even in systems having different specifications.

本発明の第1実施形態のAPI用制御装置100を示したブロック図である。It is the block diagram which showed the control apparatus 100 for API of 1st Embodiment of this invention. API対応テーブル10aの一例を示した図である。It is a figure showing an example of API correspondence table 10a. 変換式テーブル10bの一例を示した図である。It is the figure which showed an example of the conversion type | formula table 10b. 要否情報、可否情報および変換式をテーブル記憶部1に設定する動作を説明するためのフローチャートである。4 is a flowchart for explaining an operation of setting necessity information, availability information, and a conversion formula in the table storage unit 1. API呼び出し要求を受信した場合の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement when an API call request | requirement is received. 返値を受信した場合の動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement when a return value is received. テーブル記憶部1と差分吸収管理部21および22とからなるAPI用制御装置を示した図である。It is the figure which showed the control apparatus for API which consists of the table memory | storage part 1 and the difference absorption management parts 21 and 22. 本発明の第2実施形態のAPI用制御装置100Aを示したブロック図である。It is the block diagram which showed 100A of API control apparatuses of 2nd Embodiment of this invention. API名テーブル10cの一例を示した図である。It is the figure which showed an example of the API name table 10c.

以下、本発明の実施形態について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

(第1実施形態)
図1は、本発明の第1実施形態のAPI用制御装置100を示したブロック図である。
(First embodiment)
FIG. 1 is a block diagram showing an API control device 100 according to the first embodiment of the present invention.

API用制御装置100は、サービスシステム200および連携システム301〜30m(ただし、mは1以上の整数)と通信する。   The API control device 100 communicates with the service system 200 and the cooperation systems 301 to 30m (where m is an integer equal to or greater than 1).

サービスシステム200は、API201〜20nを有する。本実施形態では、n=2とする。なお、nは2に限らず1以上の整数であれば適宜変更可能である。API201および202は、それぞれ、自己に割り当てられた処理を規定したプログラムを実行することによって、自己に割り当てられた処理を実行する。   The service system 200 includes APIs 201 to 20n. In this embodiment, n = 2. Note that n is not limited to 2, and can be appropriately changed as long as it is an integer of 1 or more. Each of the APIs 201 and 202 executes a process assigned to itself by executing a program that defines the process assigned to itself.

以下、API201の名称を「F_API」とし、API202の名称を「G_API」とする。   Hereinafter, the name of the API 201 is “F_API” and the name of the API 202 is “G_API”.

サービスシステム200は、サービスシステム200の利用者が使用する利用者端末400と接続し、利用者端末400にAPI201や202を利用させる。   The service system 200 is connected to the user terminal 400 used by the user of the service system 200, and causes the user terminal 400 to use the APIs 201 and 202.

連携システム301〜30mは、それぞれ、処理装置の一例である。   Each of the cooperation systems 301 to 30m is an example of a processing device.

本実施形態では、連携システム301〜30mは、それぞれ、別々の企業にて管理されているとする。なお、連携システム301〜30mは、別々の企業にて管理されずに同一の企業にて管理されてもよいし、個人等にて管理されてもよい。   In this embodiment, it is assumed that the cooperation systems 301 to 30m are managed by different companies. The cooperation systems 301 to 30m may be managed by the same company without being managed by separate companies, or may be managed by an individual or the like.

連携システム301〜30mには、それぞれ、自システムまたは自システムの利用者を識別するための識別子が付加されている。   Each of the cooperation systems 301 to 30m is added with an identifier for identifying the own system or a user of the own system.

識別子としては、例えば、自システムを管理している企業(自システムの利用者)のID(以下「企業ID」と称する)やパスワードや自システムのIP(Internet Protocol)アドレスや自システムのMAC(Media Access Control)アドレスが用いられる。   As the identifier, for example, an ID (hereinafter referred to as “company ID”), a password, an IP (Internet Protocol) address of the own system, or a MAC ( Media Access Control) address is used.

本実施形態では、識別子として企業IDが用いられる。以下では、連携システム301には、企業ID「aaa」が付加され、連携システム302には、企業ID「bbb」が付加されているとする。また、本実施形態では、連携システム301〜30mは、それぞれ、別々の企業にて管理されているので、企業IDは、連携システム301〜30mを識別するための識別子としても機能する。   In the present embodiment, a company ID is used as an identifier. In the following, it is assumed that the company ID “aaa” is added to the linkage system 301 and the company ID “bbb” is added to the linkage system 302. Moreover, in this embodiment, since the cooperation systems 301-30m are each managed by a different company, company ID functions also as an identifier for identifying the cooperation systems 301-30m.

連携システム301〜30mは、それぞれ、サービスシステム200内のAPIを使用するためのAPI呼び出し要求を、API用制御装置100に送信する。   Each of the cooperation systems 301 to 30m transmits an API call request for using the API in the service system 200 to the API control device 100.

なお、API呼び出し要求は、サービスシステム200内のAPIを使用するための送信情報の一例である。   The API call request is an example of transmission information for using the API in the service system 200.

本実施形態では、API呼び出し要求は、呼び出しの対象となるAPI(以下「対象API」)の名称と、対象APIにて処理されるパラメータ(呼出値)と、を含む。   In the present embodiment, the API call request includes the name of the API to be called (hereinafter “target API”) and a parameter (call value) processed by the target API.

なお、API呼び出し要求に、API呼び出し要求の送信元のシステム(連携システム)の企業IDが付加されてもよい。以下では、API呼び出し要求に企業IDが付加されるとする。   Note that the company ID of the system (cooperation system) that transmitted the API call request may be added to the API call request. In the following, it is assumed that the company ID is added to the API call request.

例えば、API201が、指定された商品番号(商品型番)にて特定される商品の価格をデータベースに登録する処理を行う機能を有し、企業ID「aaa」が付加された連携システム301が、API201を用いて、商品型番S−001の商品の価格1050円(税込み)をデータベースに登録する場合、連携システム301が送信するAPI呼び出し要求は、「F_API(aaa,S−001,1050)」となる。   For example, the API 201 has a function of performing processing for registering the price of a product specified by a designated product number (product model number) in a database, and the cooperation system 301 to which the company ID “aaa” is added is the API 201. When the price 1050 yen (including tax) of the product with the product model number S-001 is registered in the database, the API call request transmitted by the cooperation system 301 is “F_API (aaa, S-001, 1050)”. .

なお、API呼び出し要求「F_API(aaa,S−001,1050)」では、「F_API」が対象APIの名称(識別情報)となり、「aaa」がAPI呼び出し要求の送信元(連携システム)の企業IDとなり、「S−001,1050」がパラメータ(呼出値)となる。   In the API call request “F_API (aaa, S-001, 1050)”, “F_API” is the name (identification information) of the target API, and “aaa” is the company ID of the API call request source (cooperative system). Thus, “S-001, 1050” is a parameter (call value).

API用制御装置100は、API201および202と、連携システム301〜30mと、の間の通信を制御する。   The API control device 100 controls communication between the APIs 201 and 202 and the cooperation systems 301 to 30m.

API用制御装置100は、アクセス制御部101と、WebAPI−GW(ゲートウェイ)102と、管理者入力部103と、を含む。WebAPI−GW102は、テーブル記憶部1と、情報制御部2と、を含む。情報制御部2は、差分吸収管理部21および22を含む。   The API control device 100 includes an access control unit 101, a WebAPI-GW (gateway) 102, and an administrator input unit 103. The WebAPI-GW 102 includes a table storage unit 1 and an information control unit 2. The information control unit 2 includes differential absorption management units 21 and 22.

アクセス制御部101は、連携システム301〜30mの各々について認証を行いWebAPI−GW102へのアクセスを制御する。なお、アクセス制御部101が行う認証は、公知の手法(例えば、企業IDやIP(Internet Protocol)アドレスの照合)にて実行される。   The access control unit 101 performs authentication for each of the cooperation systems 301 to 30m and controls access to the WebAPI-GW102. Note that the authentication performed by the access control unit 101 is executed by a known method (for example, verification of a company ID or an IP (Internet Protocol) address).

WebAPI−GW102は、アクセス制御部101にてアクセスが許容された連携システムから、API呼び出し要求を受信する。   The WebAPI-GW 102 receives an API call request from the cooperation system that is permitted to be accessed by the access control unit 101.

WebAPI−GW102は、例えば、API呼び出し要求の形式を、対象APIの入力形式に変換し、変換後のAPI呼び出し要求を対象APIに送信する。   For example, the Web API-GW 102 converts the API call request format into the input format of the target API, and transmits the converted API call request to the target API.

また、WebAPI−GW102は、例えば、API呼び出し要求に応じて処理を実行した対象APIからの返値(戻り値)を、API呼び出し要求の送信元の連携システム(以下「送信元連携システム」と称する)の入力形式に変換し、変換後の返値を送信元連携システムに送信する。   Further, for example, the WebAPI-GW 102 refers to a return value (return value) from a target API that has executed processing in response to an API call request, as a cooperation system (hereinafter referred to as a “transmission source cooperation system”) of the API call request transmission source. ) Input format and send the converted return value to the source linkage system.

なお、対象APIからの返値は、対象APIからの出力情報の一例である。   Note that the return value from the target API is an example of output information from the target API.

テーブル記憶部1は、記憶手段と保持手段とを兼ねる。   The table storage unit 1 serves as both storage means and holding means.

テーブル記憶部1は、API対応テーブルと、変換式テーブルと、を記憶する。   The table storage unit 1 stores an API correspondence table and a conversion formula table.

API対応テーブルには、企業IDに対応づけて可否情報と要否情報とが記載される。   In the API correspondence table, availability information and necessity information are described in association with the company ID.

可否情報は、連携システム301〜30mの各々について、連携システムによるAPI201および202の各々の利用の可否を表す。   The availability information represents availability of each of the APIs 201 and 202 by the cooperation system for each of the cooperation systems 301 to 30m.

要否情報は、連携システム301〜30mの各々からのAPI呼び出し要求に対する変換処理(以下「第1変換処理」と称する)の要否と、API呼び出し要求に応じて対象APIから出力された返値に対する変換処理(以下「第2変換処理」と称する)の要否と、を表す。   Necessity information includes necessity / unnecessity of a conversion process (hereinafter referred to as “first conversion process”) for an API call request from each of the cooperation systems 301 to 30m, and a return value output from the target API in response to the API call request. The necessity of the conversion process (hereinafter referred to as “second conversion process”).

変換式テーブルには、第1変換処理を規定する変換式と、第2変換処理を規定する変換式とが、記載される。   The conversion formula table describes a conversion formula that defines the first conversion process and a conversion formula that defines the second conversion process.

図2は、API対応テーブル10aの一例を示した図である。なお、図2では、APIの数を2以上としている。   FIG. 2 is a diagram showing an example of the API correspondence table 10a. In FIG. 2, the number of APIs is two or more.

図2では、企業IDごとに、つまり連携システムごとに、API201および202等の各APIについて、利用可10a1または利用不可10a2が示されている。利用可10a1や利用不可10a2が、可否情報の一例となる。   In FIG. 2, usable 10a1 or unusable 10a2 is shown for each API such as API 201 and 202 for each company ID, that is, for each linked system. Usable 10a1 and unavailable 10a2 are examples of availability information.

図2に示した可否情報は、企業ID「aaa」にて識別される連携システム301がAPI201(F_API)およびAPI202(G_API)を利用可能であり、企業ID「bbb」にて識別される連携システム302がAPI201(F_API)を利用できないがAPI202(G_API)を利用可能であることを示している。   The availability information shown in FIG. 2 indicates that the cooperation system 301 identified by the company ID “aaa” can use the API 201 (F_API) and API 202 (G_API), and is identified by the company ID “bbb”. 302 indicates that the API 201 (F_API) cannot be used, but the API 202 (G_API) can be used.

また、図2では、企業ID(連携システム)とAPIとの組合せのうち、利用可10a1が示された組合せについて、変換要10a3または変換否10a4が示されている。   Further, in FIG. 2, conversion required 10a3 or conversion rejection 10a4 is shown for a combination in which use 10a1 is indicated among combinations of company ID (cooperation system) and API.

また、変換要10a3に付属する情報として、API呼び出し要求内のパラメータ等の呼出値を変換する変換式を特定するための変換コード10a31や、返値を変換する変換式を特定するための変換コード10a32が示されている。変換要10a3、変換否10a4、変換コード10a31や変換コード10a32が、要否情報の一例となる。   As information attached to the conversion request 10a3, a conversion code 10a31 for specifying a conversion expression for converting a call value such as a parameter in an API call request, or a conversion code for specifying a conversion expression for converting a return value 10a32 is shown. The conversion requirement 10a3, the conversion failure 10a4, the conversion code 10a31, and the conversion code 10a32 are examples of the necessity information.

図3は、変換式テーブル10bの一例を示した図である。   FIG. 3 is a diagram showing an example of the conversion formula table 10b.

図3では、変換コード10a31の一例である「aaa_f_001」に対応する変換式として、「aaa_f_001=価格パラメータ÷105%」が示され、変換コード10a32の一例である「aaa_f_002」に対応する変換式として、「aaa_f_002=正常登録コード:1→10」が示されている。   In FIG. 3, “aaa_f_001 = price parameter ÷ 105%” is shown as a conversion expression corresponding to “aaa_f_001” which is an example of the conversion code 10a31, and as a conversion expression corresponding to “aaa_f_002” which is an example of the conversion code 10a32. “Aaa_f — 002 = normal registration code: 1 → 10”.

なお、変換式「aaa_f_001=価格パラメータ÷105%」は、API呼び出し要求を、対象API用の入力形式に変換するための変換手法を表す。   The conversion formula “aaa_f — 001 = price parameter ÷ 105%” represents a conversion method for converting an API call request into an input format for the target API.

また、変換式「aaa_f_002=正常登録コード:1→10」は、対象APIからの返値を、送信元連携システムの入力形式に変換するために変換手法を表す。   The conversion formula “aaa_f — 002 = normal registration code: 1 → 10” represents a conversion method for converting the return value from the target API into the input format of the transmission source cooperation system.

情報制御部2は、テーブル記憶部1を参照して、API呼び出し要求やAPIからの返値を制御する。   The information control unit 2 refers to the table storage unit 1 and controls an API call request and a return value from the API.

差分吸収管理部21は、第1変換手段の一例である。   The difference absorption management unit 21 is an example of a first conversion unit.

差分吸収管理部21は、例えば、連携システム301〜30mのいずれかからAPI呼び出し要求を受信すると、テーブル記憶部1内の要否情報のうち、API呼び出し要求に含まれる企業IDに対応する要否情報(以下「該当要否情報」と称する)が、そのAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、そのAPI呼び出し要求を、対象API用の入力形式に変換して対象APIに送信し、該当要否情報が、そのAPI呼び出し要求について第1変換処理が必要ない旨を表す場合に、そのAPI呼び出し要求を、対象APIに送信する。   For example, when the difference absorption management unit 21 receives an API call request from any of the cooperation systems 301 to 30m, the necessity / unnecessity corresponding to the company ID included in the API call request in the necessity information in the table storage unit 1. When the information (hereinafter referred to as “relevant necessity information”) indicates that the first conversion process is necessary for the API call request, the API call request is converted into an input format for the target API and the target When the corresponding necessity information indicates that the first conversion process is not necessary for the API call request, the API call request is transmitted to the target API.

差分吸収管理部22は、第2変換手段の一例である。   The difference absorption management unit 22 is an example of a second conversion unit.

差分吸収管理部22は、例えば、対象APIから返値を受信すると、該当要否情報が、その返値について第2変換処理が必要である旨を表す場合に、その返値を、送信元連携システム用の入力形式に変換して送信元連携システムに送信し、該当要否情報が、その返値について第2変換処理が必要ない旨を表す場合に、その返値を、送信元連携システムに送信する。   For example, when the difference absorption management unit 22 receives a return value from the target API, and the corresponding necessity information indicates that the second conversion process is necessary for the return value, the difference absorption management unit 22 displays the return value in cooperation with the transmission source. When it is converted into the input format for the system and transmitted to the transmission source cooperation system, and the corresponding necessity information indicates that the second conversion processing is not necessary for the return value, the return value is sent to the transmission source cooperation system. Send.

管理者入力部103は、設定手段の一例である。   The administrator input unit 103 is an example of a setting unit.

管理者入力部103は、API用制御装置100の管理者(以下、単に「管理者」と称する)による企業ID、要否情報、可否情報および変換式の入力を受け付け、要否情報、可否情報および変換式を企業IDに対応づけてテーブル記憶部1に設定する。   The administrator input unit 103 accepts input of a company ID, necessity information, availability information, and conversion formula by an administrator of the API control device 100 (hereinafter simply referred to as “administrator”), and the necessity information and availability information. The conversion formula is set in the table storage unit 1 in association with the company ID.

次に、動作を説明する。   Next, the operation will be described.

図4は、要否情報、可否情報および変換式をテーブル記憶部1に設定する動作を説明するためのフローチャートである。   FIG. 4 is a flowchart for explaining an operation of setting necessity information, availability information, and a conversion formula in the table storage unit 1.

サービスシステム200内のAPIを連携システムで利用する旨の申し込みがあると、管理者は、利用の申し込みのあった連携システムとサービスシステム200内のAPIとの仕様の違い(例えば、コード体系の違い)を吸収するための、要否情報、可否情報および変換式を、企業IDと共に管理者入力部103に入力する。   When there is an application for using the API in the service system 200 in the cooperation system, the administrator determines a difference in specifications between the cooperation system in which the application for use is made and an API in the service system 200 (for example, a difference in code system). ) Is input to the administrator input unit 103 together with the company ID.

管理者入力部103は、要否情報、可否情報および変換式を企業IDと共に受け付けると(ステップS401)、要否情報、可否情報および変換式を企業IDに対応づけてテーブル記憶部1に設定する(ステップS402)。以下では、テーブル記憶部1に、図2に示したAPI対応テーブル10aと図3に示した変換式テーブル10bが記憶されたとする。   When the manager input unit 103 receives the necessity information, the availability information, and the conversion formula together with the company ID (step S401), the manager input unit 103 sets the necessity information, the availability information, and the conversion formula in the table storage unit 1 in association with the company ID. (Step S402). Hereinafter, it is assumed that the API correspondence table 10a illustrated in FIG. 2 and the conversion formula table 10b illustrated in FIG. 3 are stored in the table storage unit 1.

図5は、API呼び出し要求を受信した場合の動作を説明するためのフローチャートである。   FIG. 5 is a flowchart for explaining the operation when an API call request is received.

例えば、連携システム301が、API呼び出し要求「F_API(aaa,S−001,1050)」を、API用制御装置100に送信すると、アクセス制御部101は、API呼び出し要求内の企業ID「aaa」を用いて、連携システム301を認証する(ステップS501)。   For example, when the cooperation system 301 transmits an API call request “F_API (aaa, S-001, 1050)” to the API control device 100, the access control unit 101 sets the company ID “aaa” in the API call request. In step S501, the cooperative system 301 is authenticated.

アクセス制御部101は、連携システム301がWebAPI−GW102にアクセスすることを禁止する認証結果を得ると、エラー情報を連携システム301に送信する。   When the access control unit 101 obtains an authentication result that prohibits the linkage system 301 from accessing the WebAPI-GW 102, the access control unit 101 transmits error information to the linkage system 301.

一方、アクセス制御部101は、連携システム301がWebAPI−GW102にアクセスすることを許容する認証結果を得ると、API呼び出し要求「F_API(aaa,S−001,1050)」を、差分吸収管理部21に出力する。   On the other hand, when the access control unit 101 obtains an authentication result that allows the cooperation system 301 to access the WebAPI-GW 102, the access control unit 101 sends an API call request “F_API (aaa, S-001, 1050)” to the difference absorption management unit 21. Output to.

差分吸収管理部21は、API呼び出し要求「F_API(aaa,S−001,1050)」を受信すると、API呼び出し要求に示された企業ID「aaa」と、API呼び出し要求に対象APIとして示されたAPI201(F_API)と、の組合せ(以下「対象組合せ」と称する)に対応する可否情報(以下「該当可否情報」と称する)を、API対応テーブル10aから読み出す(ステップS502)。   Upon receiving the API call request “F_API (aaa, S-001, 1050)”, the difference absorption management unit 21 is indicated as the target API in the API call request and the company ID “aaa” indicated in the API call request. The availability information (hereinafter referred to as “applicability information”) corresponding to the combination of API 201 (F_API) (hereinafter referred to as “target combination”) is read from the API correspondence table 10a (step S502).

該当可否情報が利用可10a1を示すと(ステップS503)、差分吸収管理部21は、対象API(API201)が連携システム301で利用可能であると判断する。   When the corresponding availability information indicates the availability 10a1 (step S503), the difference absorption management unit 21 determines that the target API (API 201) is available in the cooperation system 301.

一方、該当可否情報が利用不可10a2を示すと(ステップS503)、差分吸収管理部21は、対象API(API201)が連携システム301で利用不可であると判断する。   On the other hand, when the corresponding availability information indicates the unusable 10a2 (step S503), the difference absorption management unit 21 determines that the target API (API 201) is unusable in the linkage system 301.

差分吸収管理部21は、利用不可と判断した場合、アクセス制御部101を介して連携システム301(送信元連携システム)に、エラー情報を送信する(ステップS504)。   If the difference absorption management unit 21 determines that it cannot be used, the difference absorption management unit 21 transmits error information to the cooperation system 301 (transmission source cooperation system) via the access control unit 101 (step S504).

なお、本例では、該当可否情報が利用可10a1を示すため、差分吸収管理部21は、利用可と判断する。   In this example, since the corresponding availability information indicates the availability 10a1, the difference absorption management unit 21 determines that the availability is possible.

差分吸収管理部21は、利用可と判断した場合、対象組合せ(本例では、企業ID「aaa」とAPI201(F_API)との組合せ)に対応する要否情報(該当要否情報)を、API対応テーブル10aから読み出す(ステップS505)。   If the difference absorption management unit 21 determines that it can be used, the necessity information (corresponding necessity information) corresponding to the target combination (in this example, the combination of the company ID “aaa” and the API 201 (F_API)) Read from the correspondence table 10a (step S505).

該当要否情報が、変換否10a4を示すか、または、呼出値10a31を示していないと(ステップS506)、差分吸収管理部21は、API呼び出し要求「F_API(aaa,S−001,1050)」をそのまま、対象APIであるAPI201(F_API)に送信する(ステップS507)。   If the corresponding necessity information does not indicate the conversion failure 10a4 or the call value 10a31 (step S506), the difference absorption management unit 21 calls the API call request “F_API (aaa, S-001, 1050)”. Is transmitted to the API 201 (F_API) which is the target API as it is (step S507).

一方、該当要否情報が、変換否10a4を示しておらず、かつ、呼出値10a31を示すと(ステップS506)、差分吸収管理部21は、呼出値10a31に対応する変換式を変換式テーブル10bから読み出す(ステップS508)。   On the other hand, if the corresponding necessity information does not indicate the conversion rejection 10a4 and indicates the call value 10a31 (step S506), the difference absorption management unit 21 converts the conversion formula corresponding to the call value 10a31 to the conversion formula table 10b. (Step S508).

本例では、該当要否情報が「呼出値:aaa_f_001」10a31を示すので、差分吸収管理部21は、変換式「aaa_f_001=価格パラメータ÷105%」を変換式テーブル10bから読み出す。   In this example, since the corresponding necessity information indicates “call value: aaa_f_001” 10a31, the difference absorption management unit 21 reads the conversion formula “aaa_f_001 = price parameter ÷ 105%” from the conversion formula table 10b.

続いて、差分吸収管理部21は、読み出された変換式「aaa_f_001=価格パラメータ÷105%」に従って、API呼び出し要求「F_API(aaa,S−001,1050)」を、対象API(API201)の入力形式に応じたAPI呼び出し要求「F_API(aaa,S−001,1000)」に変換する(ステップS509)。   Subsequently, the difference absorption management unit 21 sends an API call request “F_API (aaa, S-001, 1050)” to the target API (API 201) according to the read conversion formula “aaa_f — 001 = price parameter ÷ 105%”. The API call request “F_API (aaa, S-001, 1000)” corresponding to the input format is converted (step S509).

なお、変換式「aaa_f_001=価格パラメータ÷105%」は、例えば、連携システム301が、商品の価格を税込みで入力する仕様になっているのに対して、API201が、商品の価格を税抜きで登録する仕様となっている状況において、連携システム301での税込み価格(API呼び出し要求内の「1050」)を、API201で使用する税抜き価格に変換するために使用される。   The conversion formula “aaa_f — 001 = price parameter ÷ 105%” is, for example, a specification in which the cooperation system 301 inputs the price of the product including tax, whereas the API 201 excludes the price of the product. In the situation where the specification is to be registered, it is used to convert the tax-included price (“1050” in the API call request) in the cooperation system 301 into the tax-excluded price used in the API 201.

続いて、差分吸収管理部21は、API呼び出し要求「F_API(aaa,S−001,1000)」を、対象APIであるAPI201に送信する(ステップS510)。   Subsequently, the difference absorption management unit 21 transmits an API call request “F_API (aaa, S-001, 1000)” to the API 201 that is the target API (step S510).

サービスシステム200内のAPI201は、API呼び出し要求「F_API(aaa,S−001,1000)」を受け付けると、商品型番S−001の商品の価格1000円(税抜き)をデータベースに登録する処理を実行する。   When the API 201 in the service system 200 receives the API call request “F_API (aaa, S-001, 1000)”, the API 201 executes a process of registering the price 1000 yen (excluding tax) of the product with the product model number S-001 in the database. To do.

API201は、処理を終了すると、API呼び出し要求の送信元(本例では、提携システム301)を宛先として設定した返値(処理結果)を、差分吸収管理部22に送信する。   When the process ends, the API 201 transmits a return value (processing result) set with the API call request transmission source (in this example, the affiliated system 301) as the destination to the difference absorption management unit 22.

本実施形態では、API201は、返値として、API201にて正常登録が行われた旨を示す正常登録コード「1」を出力する。   In the present embodiment, the API 201 outputs, as a return value, a normal registration code “1” indicating that normal registration has been performed by the API 201.

なお、API201は、API呼び出し要求に応じた処理を実行できなかった場合には、API呼び出し要求の送信元を宛先として設定したエラー情報を、差分吸収管理部22に送信する。差分吸収管理部22は、エラー情報を受信すると、そのエラー情報に設定された宛先に、そのエラー情報を、アクセス制御部101を介して送信する。   If the API 201 cannot execute the process according to the API call request, the API 201 transmits error information in which the API call request transmission source is set as the destination to the difference absorption management unit 22. When receiving the error information, the difference absorption management unit 22 transmits the error information to the destination set in the error information via the access control unit 101.

図6は、返値を受信した場合の動作を説明するためのフローチャートである。   FIG. 6 is a flowchart for explaining the operation when a return value is received.

差分吸収管理部22は、返値を受信すると、その返値の送信元である対象API(本例ではAPI201)と、その返値の宛先となる連携システム(本例では連携システム301)と、の組合せに対応する要否情報(つまり、該当要否情報)を、API対応テーブル10aから読み出す(ステップS601)。   When the difference absorption management unit 22 receives the return value, the target API (API 201 in this example) that is the transmission source of the return value, the cooperation system (in this example, the cooperation system 301) that is the destination of the return value, Necessity information corresponding to the combination (that is, corresponding necessity information) is read from the API correspondence table 10a (step S601).

該当要否情報が、変換否10a4を示すか、または、返値10a32を示していないと(ステップS602)、差分吸収管理部22は、返値をそのまま、その返値に設定された宛先に、アクセス制御部101を介して送信する(ステップS603)。   If the corresponding necessity information indicates the conversion failure 10a4 or does not indicate the return value 10a32 (step S602), the difference absorption management unit 22 uses the return value as it is as the destination set in the return value. Transmission is performed via the access control unit 101 (step S603).

一方、該当要否情報が、変換否10a4を示しておらず、かつ、返値10a32を示すと(ステップS602)、差分吸収管理部22は、返値10a32に対応する変換式を変換式テーブル10bから読み出す(ステップS604)。   On the other hand, if the corresponding necessity information does not indicate the conversion rejection 10a4 and indicates the return value 10a32 (step S602), the difference absorption management unit 22 sets the conversion formula corresponding to the return value 10a32 to the conversion formula table 10b. (Step S604).

本例では、該当要否情報が「返値:aaa_f_002」10a32を示すので、差分吸収管理部22は、変換式「aaa_f_002=正常登録コード:1→10」を変換式テーブル10bから読み出す。   In this example, since the corresponding necessity information indicates “return value: aaa_f — 002” 10a32, the difference absorption management unit 22 reads the conversion formula “aaa_f — 002 = normal registration code: 1 → 10” from the conversion formula table 10b.

続いて、差分吸収管理部22は、読み出された変換式「aaa_f_002=正常登録コード:1→10」に従って、返値「1」を、返値に設定された宛先での入力形式に応じた返値「10」に変換する(ステップS605)。   Subsequently, the difference absorption management unit 22 sets the return value “1” according to the input format at the destination set as the return value in accordance with the read conversion formula “aaa_f — 002 = normal registration code: 1 → 10”. The return value is converted to “10” (step S605).

なお、変換式「aaa_f_002=正常登録コード:1→10」は、例えば、API201では正常登録コードが「1」に設定されているのに対して、連携システム301では正常登録コードが「10」に設定されている状況において、API201での正常登録コード「1」を、連携システム301での正常登録コード「10」に変換するために使用される。   Note that the conversion formula “aaa_f — 002 = normal registration code: 1 → 10”, for example, the normal registration code is set to “1” in the API 201, whereas the normal registration code is set to “10” in the linkage system 301. In the set situation, it is used to convert the normal registration code “1” in the API 201 into the normal registration code “10” in the linkage system 301.

続いて、差分吸収管理部22は、返値「10」を、返値に設定された宛先(連携システム301)に、アクセス制御部101を介して送信する(ステップS606)。   Subsequently, the difference absorption management unit 22 transmits the return value “10” to the destination (cooperation system 301) set as the return value via the access control unit 101 (step S606).

返値に設定された宛先である連携システム301は、返値を受信すると、返値に応じた処理結果を、連携システム301、または、連携システム301に接続されている利用者端末(不図示)に表示する。   Upon receiving the return value, the cooperation system 301 that is the destination set in the return value sends the processing result corresponding to the return value to the cooperation system 301 or a user terminal (not shown) connected to the cooperation system 301. To display.

次に、本実施形態の効果を説明する。   Next, the effect of this embodiment will be described.

本実施形態によれば、テーブル記憶部1は、要否情報を企業IDに対応づけて記憶する。   According to the present embodiment, the table storage unit 1 stores necessity information in association with the company ID.

差分吸収管理部21は、連携システム301〜30mのいずれかからAPI呼び出し要求を受信すると、該当要否情報が、そのAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、そのAPI呼び出し要求を、対象API用の入力形式に変換して対象APIに送信し、該当要否情報が、そのAPI呼び出し要求について第1変換処理が不要である旨を表す場合に、そのAPI呼び出し要求を、対象APIに送信する。   When the difference absorption management unit 21 receives an API call request from any of the cooperation systems 301 to 30m, if the corresponding necessity information indicates that the first conversion process is required for the API call request, the API is requested. When the call request is converted into an input format for the target API and transmitted to the target API, and the corresponding necessity information indicates that the first conversion process is not necessary for the API call request, the API call request is To the target API.

差分吸収管理部22は、対象APIから返値を受信すると、該当要否情報が、その返値について第2変換処理が必要である旨を表す場合に、その返値を、送信元連携システム用の入力形式に変換して送信元連携システムに送信し、該当要否情報が、その返値について第2変換処理が不要である旨を表す場合に、その返値を、送信元連携システムに送信する。   When the difference absorption management unit 22 receives the return value from the target API, if the corresponding necessity information indicates that the second conversion process is necessary for the return value, the difference absorption management unit 22 uses the return value for the transmission source cooperation system. When the corresponding necessity information indicates that the second conversion process is unnecessary for the return value, the return value is sent to the source cooperation system. To do.

このため、API呼び出し要求の形式が、対象API用の入力形式に対応していない場合には、API呼び出し要求は、対象API用の入力形式に応じた形式に変換されて対象APIに送信される。   Therefore, when the API call request format does not correspond to the input format for the target API, the API call request is converted into a format corresponding to the input format for the target API and transmitted to the target API. .

また、対象APIからの返値の形式が、送信元連携システムの入力形式に対応していない場合には、返値は、送信元連携システムの入力形式に応じた形式に変換されて送信元連携システムに送信される。   In addition, when the format of the return value from the target API does not correspond to the input format of the transmission source cooperation system, the return value is converted into a format according to the input format of the transmission source cooperation system, and the transmission source cooperation Sent to the system.

したがって、APIと各連携システムとの間の仕様の差分を、連携システムごとに、API用制御装置100が吸収することができる。よって、サービスシステム200内のAPIと仕様の異なるシステム(連携システム)でも、そのAPIを使用することが可能になる。   Therefore, the API control device 100 can absorb the difference in specifications between the API and each linkage system for each linkage system. Therefore, even in a system (cooperation system) having a different specification from the API in the service system 200, the API can be used.

なお、上記効果は、テーブル記憶部1と差分吸収管理部21および22とからなるAPI用制御装置でも奏する。   Note that the above-described effects can also be achieved by an API control device including the table storage unit 1 and the difference absorption management units 21 and 22.

図7は、テーブル記憶部1と差分吸収管理部21および22とからなるAPI用制御装置を示した図である。   FIG. 7 is a diagram illustrating an API control device including the table storage unit 1 and the difference absorption management units 21 and 22.

また、本実施形態では、テーブル記憶部1は、第1変換処理が必要なAPI呼び出し要求について、そのAPI呼び出し要求を対象API用の入力形式に変換するための第1変換手法(変換式)を記憶し、かつ、第2変換処理が必要な返値について、その返値を、送信先となる連携システム用の入力形式に変換するための第2変換手法(変換式)を記憶する。   In the present embodiment, the table storage unit 1 uses a first conversion method (conversion formula) for converting an API call request into an input format for the target API for an API call request that requires the first conversion process. The second conversion method (conversion formula) for storing the return value that needs to be stored and converting the return value into the input format for the cooperation system that is the transmission destination is stored.

差分吸収管理部21は、該当要否情報がAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、第1変換手法に従ってAPI呼び出し要求を対象API用の入力形式に変換する。   The difference absorption management unit 21 converts the API call request into the input format for the target API according to the first conversion method when the necessity information indicates that the first conversion process is necessary for the API call request.

差分吸収管理部22は、該当要否情報が返値について第2変換処理が必要である旨を表す場合には、第2変換手法に従ってその返値を送信先となる連携システム用の入力形式に変換する。   When the corresponding necessity information indicates that the second conversion process is necessary for the return value, the difference absorption management unit 22 converts the return value into the input format for the cooperation system as the transmission destination according to the second conversion method. Convert.

このため、第1変換手法や第2変換手法を適宜設定することにより、API呼び出し要求を対象API用の入力形式に適切に変換することができ、また、返値を送信先となる連携システム用の入力形式に変換することができる。   For this reason, by appropriately setting the first conversion method and the second conversion method, the API call request can be appropriately converted into the input format for the target API, and the return value is for the cooperation system as the transmission destination. Can be converted to the input format.

また、本実施形態では、テーブル記憶部1は可否情報を企業IDに対応づけて記憶する。   Further, in the present embodiment, the table storage unit 1 stores the availability information in association with the company ID.

差分吸収管理部21は、連携システム301〜30mのいずれかからAPI呼び出し要求を受信すると、該当可否情報がAPI呼び出し要求の送信元による対象APIの利用可を表す状況において、該当要否情報が、そのAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、そのAPI呼び出し要求を、対象API用の入力形式に変換して対象APIに送信し、該当要否情報が、そのAPI呼び出し要求について第1変換処理が不要である旨を表す場合に、そのAPI呼び出し要求を、対象APIに送信する。   When the difference absorption management unit 21 receives an API call request from any of the cooperation systems 301 to 30m, in a situation where the corresponding availability information represents the availability of the target API by the source of the API call request, the corresponding necessity information When the API conversion request indicates that the first conversion process is necessary, the API call request is converted into an input format for the target API and transmitted to the target API, and the corresponding necessity information indicates the API call. If the request indicates that the first conversion process is not necessary, the API call request is transmitted to the target API.

このため、連携システムによるAPIの使用を制限することが可能になる。   For this reason, it becomes possible to restrict | limit use of API by a cooperation system.

また、本実施形態では、管理者入力部103は、要否情報や可否情報や変換式を企業IDと共に受け付け、要否情報や可否情報や変換式を企業IDに対応づけてテーブル記憶部1に設定する。   In this embodiment, the administrator input unit 103 receives necessity information, availability information, and a conversion formula together with a company ID, and associates the necessity information, availability information, and conversion formula with the company ID in the table storage unit 1. Set.

このため、連携システム301〜30mやAPI201および202に対して改修を行うことなく、テーブル記憶部1での設定(情報)を変更することで、APIと仕様の異なるシステム(連携システム)でも、そのAPIを使用することが可能になる。   For this reason, it is possible to change the setting (information) in the table storage unit 1 without modifying the cooperation systems 301 to 30m and the APIs 201 and 202, so that even in a system (cooperation system) having different specifications from the API, It becomes possible to use API.

なお、図1に示したWebAPI−GW102は、コンピュータにて実現されてもよい。この場合、コンピュータは、コンピュータにて読み取り可能なCD−ROM(Compact Disk Read Only Memory)のような記録媒体に記録されたプログラムを読込み実行することによって、テーブル記憶装置1、差分吸収管理部21および22として機能する。なお、記録媒体は、CD−ROMに限らず適宜変更可能である。   Note that the WebAPI-GW 102 illustrated in FIG. 1 may be realized by a computer. In this case, the computer reads and executes a program recorded on a recording medium such as a CD-ROM (Compact Disk Read Only Memory) readable by the computer, thereby executing the table storage device 1, the difference absorption management unit 21, and the like. 22 functions. The recording medium is not limited to the CD-ROM and can be changed as appropriate.

また、API用制御装置100は、複数の装置にて構成されてもよい。例えば、API用制御装置100に含まれる各部が、独立した装置として設けられてもよい。   Further, the API control device 100 may be configured by a plurality of devices. For example, each unit included in the API control device 100 may be provided as an independent device.

(第2実施形態)
次に、本発明の第2実施形態を説明する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described.

図8は、本発明の第2実施形態のAPI用制御装置100Aを示したブロック図である。   FIG. 8 is a block diagram showing an API control device 100A according to the second embodiment of the present invention.

図8において、図1に示したものと同一構成のものには同一符号を付してある。以下、図8に示したAPI用制御装置100Aについて、図1に示したAPI用制御装置100と異なる点を中心に説明する。   In FIG. 8, the same components as those shown in FIG. Hereinafter, the API control device 100A shown in FIG. 8 will be described focusing on differences from the API control device 100 shown in FIG.

図1に示した第1実施形態では、各連携システムが、サービスシステム200内のAPIの名称(例えば、F_API)を用いてAPI呼び出し要求を送信した。   In the first embodiment illustrated in FIG. 1, each cooperation system transmits an API call request using an API name (for example, F_API) in the service system 200.

これに対して第2実施形態では、各連携システムが、サービスシステム200内のAPIの名称とは異なるAPI名称(自連携システム独自の名称)を用いてAPI呼び出し要求を送信しても、サービスシステム200内のAPIが利用可能になる。   On the other hand, in the second embodiment, even if each cooperative system transmits an API call request using an API name (name unique to the local cooperative system) different from the API name in the service system 200, the service system The API in 200 becomes available.

図8に示したAPI用制御装置100Aでは、図1に示したテーブル記憶部1の代わりにテーブル記憶部1Aが用いられ、図1に示した差分吸収管理21の代わりに差分吸収管理部21Aが用いられ、図1に示した差分吸収管理22の代わりに差分吸収管理部22Aが用いられる。   In the API control device 100A shown in FIG. 8, a table storage unit 1A is used instead of the table storage unit 1 shown in FIG. 1, and a differential absorption management unit 21A is used instead of the differential absorption management 21 shown in FIG. A differential absorption management unit 22A is used instead of the differential absorption management 22 shown in FIG.

テーブル記憶部1Aは、記憶手段、保持手段および格納手段の一例である。   The table storage unit 1A is an example of a storage unit, a holding unit, and a storage unit.

テーブル記憶部1Aは、テーブル記憶部1内のAPI対応テーブル10aおよび変換式テーブル10bに加えて、API名テーブル10cを記憶する。   The table storage unit 1A stores an API name table 10c in addition to the API correspondence table 10a and the conversion formula table 10b in the table storage unit 1.

図9は、API名テーブル10cの一例を示した図である。   FIG. 9 is a diagram showing an example of the API name table 10c.

図9では、各連携システムからのAPI呼び出し要求に示されたAPIの名称10c1と、そのAPIに対応づけられたサービスシステム200内のAPIの名称10c2とが、互いに関連づけられている。   In FIG. 9, the API name 10c1 indicated in the API call request from each cooperation system and the API name 10c2 in the service system 200 associated with the API are associated with each other.

例えば、企業ID「aaa」の連携システム301からのAPI呼び出し要求に示されたAPIの名称「P_API」が、P_APIに対応づけられたサービスシステム200内のAPI201に付与されている名称「F_API」に関連づけられている。   For example, the API name “P_API” indicated in the API call request from the cooperation system 301 of the company ID “aaa” is changed to the name “F_API” assigned to the API 201 in the service system 200 associated with the P_API. Is associated.

また、企業ID「aaa」の連携システム301からのAPI呼び出し要求に示されたAPIの名称「Q_API」が、Q_APIに対応づけられたサービスシステム200内のAPI202に付与されている名称「G_API」に関連づけられている。   Also, the API name “Q_API” indicated in the API call request from the cooperation system 301 of the company ID “aaa” is changed to the name “G_API” assigned to the API 202 in the service system 200 associated with the Q_API. Is associated.

差分吸収管理部21Aは、第1変換手段の一例である。   The difference absorption management unit 21A is an example of a first conversion unit.

差分吸収管理部21Aは、例えば、連携システム301から、対象APIをP_APIとするAPI呼び出し要求「P_API(aaa,S−001,1050)」を受信すると、API呼び出し要求「P_API(aaa,S−001,1050)」のコピーを作成し、そのコピーを保持すると共に、API名テーブル10cを参照して、API呼び出し要求に示された対象APIを、「P_API」から、P_APIに関連づけられている「F_API」に変更する。   For example, when receiving the API call request “P_API (aaa, S-001, 1050)” whose target API is P_API from the cooperation system 301, the difference absorption management unit 21A receives the API call request “P_API (aaa, S-001). , 1050) ”, and holds the copy, and refers to the API name table 10c to change the target API indicated in the API call request from“ P_API ”to“ F_API ”associated with P_API. Change to

続いて、差分吸収管理部21Aは、変更後のAPI呼び出し要求「F_API(aaa,S−001,1050)」に示された企業ID「aaa」と、API呼び出し要求に対象APIとして示されたF_API(API201)と、の組合せ(対象組合せ)に対応する該当可否情報を、API対応テーブル10aから読み出し、以下、差分吸収管理部21と同様に動作する(図5参照)。   Subsequently, the difference absorption management unit 21A determines the company ID “aaa” indicated in the changed API call request “F_API (aaa, S-001, 1050)” and the F_API indicated as the target API in the API call request. Applicability information corresponding to the combination (target combination) with (API 201) is read from the API correspondence table 10a, and thereafter operates in the same manner as the difference absorption management unit 21 (see FIG. 5).

差分吸収管理部22Aは、第2変換手段の一例である。   The difference absorption management unit 22A is an example of a second conversion unit.

差分吸収管理部22Aは、例えば、差分吸収管理部21Aが対象APIをP_APIとするAPI呼び出し要求を受信した後に、F_API(API201)から返値を受信すると、差分吸収管理部21Aから、API呼び出し要求「P_API(aaa,S−001,1050)」のコピーを取得する。なお、このコピーは、差分吸収管理部21Aが、対象APIをP_APIとするAPI呼び出し要求を受信したことを表す「呼び出し要求情報」として用いられる。   For example, when the difference absorption management unit 21A receives an API call request with the target API P_API after the difference absorption management unit 21A receives a return value from the F_API (API 201), the difference absorption management unit 21A receives an API call request from the difference absorption management unit 21A. A copy of “P_API (aaa, S-001, 1050)” is acquired. This copy is used as “call request information” indicating that the difference absorption management unit 21A has received an API call request with the target API as P_API.

続いて、差分吸収管理部22Aは、テーブル記憶部1A内の該当要否情報が、その返値について第2変換処理が必要である旨を表す場合に、差分吸収管理部22が用いた手法と同様の手法で、その返値を、API呼び出し要求を送信した連携システム301用の入力形式に変換する。その後、差分吸収管理部22Aは、その変換結果を、呼び出し要求情報が対象APIとして示すP_APIからの戻り値として、連携システム301に送信する。   Subsequently, the difference absorption management unit 22A uses the method used by the difference absorption management unit 22 when the corresponding necessity information in the table storage unit 1A indicates that the second conversion process is necessary for the return value. In the same manner, the return value is converted into an input format for the cooperation system 301 that transmitted the API call request. Thereafter, the difference absorption management unit 22A transmits the conversion result to the cooperation system 301 as a return value from the P_API indicated by the call request information as the target API.

例えば、差分吸収管理部22Aは、変換結果に、その変換結果がP_APIからの戻り値であることを示すラベル情報を付し、ラベル情報が付された変換結果を、連携システム301に送信する。   For example, the difference absorption management unit 22A attaches label information indicating that the conversion result is a return value from P_API to the conversion result, and transmits the conversion result to which the label information is attached to the cooperation system 301.

一方、差分吸収管理部22Aは、テーブル記憶部1A内の該当要否情報が、その返値について第2変換処理が不要である旨を表す場合に、その返値を、呼び出し要求情報が対象APIとして示すP_APIからの戻り値として、連携システム301に送信する。   On the other hand, when the difference necessity management information in the table storage unit 1A indicates that the second conversion process is not necessary for the return value, the difference absorption management unit 22A uses the return request as the target API. As a return value from the P_API shown as

例えば、差分吸収管理部22Aは、その返値に、その返値がP_APIからの戻り値であることを示すラベル情報を付し、ラベル情報が付された返値を、連携システム301に送信する。   For example, the difference absorption management unit 22A attaches label information indicating that the return value is a return value from P_API to the return value, and transmits the return value to which the label information is attached to the cooperation system 301. .

本実施形態によれば、テーブル記憶部1Aは、サービスシステム200内のAPIの名称(識別情報)と、他のAPIの名称(識別情報)と、を互いに関連づけて格納する。   According to the present embodiment, the table storage unit 1A stores an API name (identification information) in the service system 200 and another API name (identification information) in association with each other.

差分吸収管理部21Aは、連携システムから、他のAPIの名称を有するAPI呼び出し要求を受信すると、該当要否情報がそのAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、そのAPI呼び出し要求を、他のAPIの名称に関連づけられている名称にて特定される対象API用の入力形式に変換して、その対象APIに送信し、該当要否情報がそのAPI呼び出し要求について第1変換処理が不要である旨を表す場合に、そのAPI呼び出し要求を、他のAPIの名称に関連づけられている名称にて特定される対象APIに送信する。   When the difference absorption management unit 21A receives an API call request having another API name from the cooperation system, when the corresponding necessity information indicates that the first conversion process is necessary for the API call request, The API call request is converted into an input format for the target API specified by the name associated with the name of another API, and is transmitted to the target API. When it indicates that one conversion process is unnecessary, the API call request is transmitted to the target API specified by the name associated with the name of another API.

このため、各連携システムが、サービスシステム200内のAPIの名称とは異なるAPIの名称を用いてAPI呼び出し要求を送信しても、サービスシステム200内のAPIが利用可能になる。   Therefore, even if each cooperative system transmits an API call request using an API name different from the API name in the service system 200, the API in the service system 200 can be used.

また、本実施形態では、差分吸収管理部22Aは、差分吸収管理部21Aが連携システムから他のAPIの名称を有するAPI呼び出し要求を受信した後に、該他のAPIの名称に関連づけられている名称にて特定される対象APIから返値を受信すると、以下の処理を行う。   In the present embodiment, the difference absorption management unit 22A, after the difference absorption management unit 21A receives an API call request having another API name from the cooperation system, is associated with the name of the other API. When a return value is received from the target API specified by, the following processing is performed.

該当要否情報がその返値について第2変換処理が必要である旨を表す場合には、差分吸収管理部22Aは、その返値を、API呼び出し要求の送信元である連携システム用の入力形式に変換し、その変換結果を該他のAPIからの戻り値として、その連携システムに送信する。   When the corresponding necessity information indicates that the second conversion process is necessary for the return value, the difference absorption management unit 22A uses the return value as the input format for the cooperation system that is the source of the API call request. And the conversion result is transmitted to the cooperative system as a return value from the other API.

一方、該当要否情報がその返値について第2変換処理が不要である旨を表す場合に、差分吸収管理部22Aは、その返値を該他のAPIからの戻り値として、その連携システムに出力する。   On the other hand, when the corresponding necessity information indicates that the second conversion process is not necessary for the return value, the difference absorption management unit 22A uses the return value as a return value from the other APIs to the cooperation system. Output.

このため、API呼び出し要求の送信元(送信元連携システム)は、API呼び出し要求にて要求したAPIからの戻り値が届いたと認識可能となる。   For this reason, the sender of the API call request (sender cooperation system) can recognize that the return value from the API requested by the API call request has arrived.

なお、上記各実施形態では、可否情報と要否情報とをAPI対応変換テーブル10aで管理したが、可否情報と要否情報とを別々のテーブルで管理してもよい。   In the above embodiments, the availability information and the necessity information are managed by the API conversion table 10a. However, the availability information and the necessity information may be managed by separate tables.

また、可否情報と要否情報とが別々の記憶部に記憶されてもよい。この場合、可否情報を記憶する記憶部が、保持手段の一例となり、要否情報を記憶する記憶部が、記憶手段の一例となる。   Further, the availability information and the necessity information may be stored in separate storage units. In this case, the storage unit that stores the availability information is an example of the holding unit, and the storage unit that stores the necessity information is an example of the storage unit.

また、第2実施形態では、API名テーブル10cがテーブル記憶部1Aに記憶されたが、API名テーブル10cがテーブル記憶部1Aとは異なる記憶部に記憶されてもよい。この場合、API名テーブル10cを記憶する記憶部が格納手段の一例となる。   In the second embodiment, the API name table 10c is stored in the table storage unit 1A. However, the API name table 10c may be stored in a storage unit different from the table storage unit 1A. In this case, a storage unit that stores the API name table 10c is an example of a storage unit.

また、上記各実施形態において、変換式は、数値を他の数値に変換する式に限らず、例えば、テキストを数値に変換する式、数値をテキストに変換する式、二進数を十進数に変換する式、API呼び出し要求が要求する1つのAPIを、サービスシステム側の複数のAPIに変更する式、または、API呼び出し要求に示されたAPIの名称を変更する式でもよい。   In each of the above embodiments, the conversion formula is not limited to a formula that converts a numeric value to another numeric value. For example, a formula that converts text to a numeric value, a formula that converts a numeric value to text, and a binary number that is converted to decimal Or an expression for changing one API requested by the API call request to a plurality of APIs on the service system side, or an expression for changing the name of the API indicated in the API call request.

また、連携システムとサービスシステム内のAPIとの1つの組合せに対して、複数の変換式が用いられてもよい。例えば、時間帯によって、変換に用いられる変換式が切り替わってもよい。   A plurality of conversion formulas may be used for one combination of the cooperation system and the API in the service system. For example, the conversion formula used for conversion may be switched depending on the time zone.

また、上記各実施形態では、変換要10a3と変換否10a4とが用いられたが、変換要10a3と変換否10a4とが省略されてもよい。この場合、呼出値10a31の有無や呼出値10a31に対応した変換式の有無が第1変換処理の要否を意味し、返値10a32の有無や返値10a32に対応した変換式の有無が第2変換処理の要否を意味する。つまり、呼出値10a31の有無、呼出値10a31に対応した変換式の有無、返値10a32の有無、および、返値10a32に対応した変換式の有無が、要否情報として機能する。   In each of the above embodiments, the conversion necessity 10a3 and the conversion failure 10a4 are used. However, the conversion necessity 10a3 and the conversion failure 10a4 may be omitted. In this case, the presence / absence of the call value 10a31 and the presence / absence of the conversion expression corresponding to the call value 10a31 mean the necessity of the first conversion process, and the presence / absence of the return value 10a32 and the presence / absence of the conversion expression corresponding to the return value 10a32 are the second. This means whether or not conversion processing is necessary. That is, the presence / absence of the call value 10a31, the presence / absence of a conversion expression corresponding to the call value 10a31, the presence / absence of a return value 10a32, and the presence / absence of a conversion expression corresponding to the return value 10a32 function as necessity information.

なお、図8に示したWebAPI−GW102は、コンピュータにて実現されてもよい。この場合、コンピュータは、コンピュータにて読み取り可能な記録媒体に記録されたプログラムを読込み実行することによって、テーブル記憶装置1A、差分吸収管理部21Aおよび22Aとして機能する。   Note that the WebAPI-GW 102 illustrated in FIG. 8 may be realized by a computer. In this case, the computer functions as the table storage device 1A and the difference absorption management units 21A and 22A by reading and executing a program recorded on a computer-readable recording medium.

また、API用制御装置100Aは、複数の装置にて構成されてもよい。例えば、API用制御装置100Aに含まれる各部が、独立した装置として設けられてもよい。   Further, the API control device 100A may be configured by a plurality of devices. For example, each unit included in the API control device 100A may be provided as an independent device.

以上説明した各実施形態において、図示した構成は単なる一例であって、本発明はその構成に限定されるものではない。   In each embodiment described above, the illustrated configuration is merely an example, and the present invention is not limited to the configuration.

100、100A API用制御装置
101 アクセス制御部
102 WebAPI−GW
103 管理者入力部
1、1A テーブル記憶部
2 情報制御部
21、21A、22、22A 差分吸収管理部
200 サービスシステム
201〜20n API
301〜30m 連携システム
100, 100A API control device 101 Access control unit 102 WebAPI-GW
103 administrator input unit 1, 1A table storage unit 2 information control unit 21, 21A, 22, 22A difference absorption management unit 200 service system 201-20n API
301 ~ 30m cooperation system

Claims (8)

APIと、前記APIを動作させるための送信情報を送信する処理装置と、の間の通信を制御するAPI用制御装置であって、
前記送信情報を前記API用の入力形式に変換する第1変換処理の要否と、前記APIからの出力情報を前記処理装置用の入力形式に変換する第2変換処理の要否と、を表す要否情報を、前記処理装置または前記処理装置の利用者を識別する識別子と対応づけて記憶する記憶手段と、
前記処理装置から前記識別子を含む前記送信情報を受信すると、前記要否情報のうち、前記送信情報に含まれる識別子に対応する該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する第1変換手段と、
前記APIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換して前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記処理装置に送信する第2変換手段と、を含むAPI用制御装置。
An API control device that controls communication between an API and a processing device that transmits transmission information for operating the API,
The necessity of the first conversion processing for converting the transmission information into the input format for the API and the necessity of the second conversion processing for converting the output information from the API into the input format for the processing device are indicated. Storage means for storing necessity information in association with an identifier for identifying the processing device or a user of the processing device;
When the transmission information including the identifier is received from the processing device, the necessity information corresponding to the identifier included in the transmission information among the necessity information needs the first conversion process for the transmission information. The transmission information is converted into the API input format and transmitted to the API, and the corresponding necessity information indicates that the first conversion process is not necessary for the transmission information. First conversion means for transmitting the transmission information to the API;
When the output information is received from the API, the output information is converted into an input format for the processing device when the corresponding necessity information indicates that the second conversion processing is necessary for the output information. And second conversion means for transmitting the output information to the processing device when the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information. API control device.
請求項1に記載のAPI用制御装置において、
前記記憶手段は、前記第1変換処理が必要な送信情報について、当該送信情報を前記API用の入力形式に変換するための第1変換手法を記憶し、かつ、前記第2変換処理が必要な出力情報について、当該出力情報を前記処理装置用の入力形式に変換するための第2変換手法を記憶し、
前記第1変換手段は、前記該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記第1変換手法に従って前記送信情報を前記API用の入力形式に変換し、
前記第2変換手段は、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合には、前記第2変換手法に従って前記出力情報を前記処理装置用の入力形式に変換する、API用制御装置。
The API control device according to claim 1,
The storage means stores a first conversion method for converting the transmission information into the input format for the API for transmission information that requires the first conversion process, and the second conversion process is required. For the output information, store the second conversion method for converting the output information into the input format for the processing device,
The first conversion means converts the transmission information into the input format for the API according to the first conversion method when the necessity information indicates that the first conversion processing is necessary for the transmission information. And
The second conversion means converts the output information into an input format for the processing device according to the second conversion method when the necessity information indicates that the second conversion processing is necessary for the output information. API controller that converts to
請求項1または2に記載のAPI用制御装置において、
前記処理装置による前記APIの利用の可否を表す可否情報を前記識別子と対応づけて保持する保持手段をさらに含み、
前記第1変換手段は、前記処理装置から前記識別子を含む前記送信情報を受信すると、前記可否情報のうち、前記送信情報に含まれる識別子に対応する該当可否情報が前記処理装置による前記APIの利用可を表す状況において、前記該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する、API用制御装置。
The API control device according to claim 1 or 2,
A holding unit that holds whether or not the API can be used by the processing device in association with the identifier;
When the first conversion unit receives the transmission information including the identifier from the processing device, the availability information corresponding to the identifier included in the transmission information is used by the processing device in the API. When the corresponding necessity information indicates that the first conversion process is necessary for the transmission information in the situation indicating permission, the transmission information is converted into the API input format and transmitted to the API. An API control device that transmits the transmission information to the API when the corresponding necessity information indicates that the first conversion process is unnecessary for the transmission information.
請求項1または2に記載のAPI用制御装置において、
前記APIの識別情報と、他のAPIの識別情報と、を互いに関連づけて格納する格納手段をさらに含み、
前記第1変換手段は、前記処理装置から、前記他のAPIの識別情報と前記識別子とを有する前記送信情報を受信すると、前記該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を、前記他のAPIの識別情報に関連づけられている識別情報にて特定されるAPI用の入力形式に変換して当該APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を、前記他のAPIの識別情報に関連づけられている識別情報にて特定されるAPIに送信する、API用制御装置。
The API control device according to claim 1 or 2,
Storage means for storing the identification information of the API and the identification information of another API in association with each other;
When the first conversion means receives the transmission information having the identification information of the other API and the identifier from the processing device, the first conversion process needs to be performed on the transmission information. In the case of indicating that there is, the transmission information is converted into an API input format specified by the identification information associated with the identification information of the other API and transmitted to the API. When the information indicates that the first conversion process is not necessary for the transmission information, the transmission information is transmitted to an API specified by the identification information associated with the identification information of the other API. API control device.
請求項4に記載のAPI用制御装置において、
前記第2変換手段は、前記第1変換手段が前記処理装置から前記他のAPIの識別情報と前記識別子とを有する前記送信情報を受信した後に、前記他のAPIの識別情報に関連づけられている識別情報にて特定されるAPIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換し、その変換結果を前記他のAPIからの戻り値として前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記他のAPIからの戻り値として前記処理装置に送信する、API用制御装置。
The API control device according to claim 4,
The second conversion unit is associated with the identification information of the other API after the first conversion unit receives the transmission information including the identification information of the other API and the identifier from the processing device. When the output information is received from the API specified by the identification information, if the corresponding necessity information indicates that the second conversion process is necessary for the output information, the output information is used for the processing device. When the conversion result is input, the conversion result is transmitted to the processing device as a return value from the other API, and the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information An API control device that transmits the output information to the processing device as a return value from the other API.
請求項1から5のいずれか1項に記載のAPI用制御装置において、
前記要否情報と前記識別子とを受け付け、当該要否情報を当該識別子と対応づけて前記記憶手段に設定する設定手段をさらに含む、API用制御装置。
The API control device according to any one of claims 1 to 5,
An API control device further comprising: a setting unit that receives the necessity information and the identifier, and sets the necessity information in the storage unit in association with the identifier.
APIと、前記APIを動作させるための送信情報を送信する処理装置と、の間の通信を制御するAPI用制御装置でのAPI用制御方法であって、
前記送信情報を前記API用の入力形式に変換する第1変換処理の要否と、前記APIからの出力情報を前記処理装置用の入力形式に変換する第2変換処理の要否と、を表す要否情報を、前記処理装置または前記処理装置の利用者を識別する識別子と対応づけて記憶手段に記憶する記憶ステップと、
前記処理装置から前記識別子を含む前記送信情報を受信すると、前記要否情報のうち、前記送信情報に含まれる識別子に対応する該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する第1変換ステップと、
前記APIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換して前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記処理装置に送信する第2変換ステップと、を含むAPI用制御方法。
An API control method in an API control device that controls communication between an API and a processing device that transmits transmission information for operating the API,
The necessity of the first conversion processing for converting the transmission information into the input format for the API and the necessity of the second conversion processing for converting the output information from the API into the input format for the processing device are indicated. A storage step of storing necessity information in a storage unit in association with an identifier for identifying the processing device or a user of the processing device;
When the transmission information including the identifier is received from the processing device, the necessity information corresponding to the identifier included in the transmission information among the necessity information needs the first conversion process for the transmission information. The transmission information is converted into the API input format and transmitted to the API, and the corresponding necessity information indicates that the first conversion process is not necessary for the transmission information. A first conversion step of transmitting the transmission information to the API;
When the output information is received from the API, the output information is converted into an input format for the processing device when the corresponding necessity information indicates that the second conversion processing is necessary for the output information. And a second conversion step of transmitting the output information to the processing device when the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information. Control method for API.
コンピュータに、
APIを動作させるための送信情報を前記API用の入力形式に変換する第1変換処理の要否と、前記APIからの出力情報を処理装置用の入力形式に変換する第2変換処理の要否と、を表す要否情報を、前記処理装置または前記処理装置の利用者を識別する識別子と対応づけて記憶手段に記憶する記憶手順と、
前記処理装置から前記識別子を含む前記送信情報を受信すると、前記要否情報のうち、前記送信情報に含まれる識別子に対応する該当要否情報が前記送信情報について前記第1変換処理が必要である旨を表す場合に、前記送信情報を前記API用の入力形式に変換して前記APIに送信し、前記該当要否情報が前記送信情報について前記第1変換処理が不要である旨を表す場合に、前記送信情報を前記APIに送信する第1変換手順と、
前記APIから前記出力情報を受信すると、前記該当要否情報が前記出力情報について前記第2変換処理が必要である旨を表す場合に、前記出力情報を前記処理装置用の入力形式に変換して前記処理装置に送信し、前記該当要否情報が前記出力情報について前記第2変換処理が不要である旨を表す場合に、前記出力情報を前記処理装置に送信する第2変換手順と、を実行させるためのプログラム。
On the computer,
Necessity of first conversion processing for converting transmission information for operating API into the input format for API, and necessity of second conversion processing for converting output information from API into input format for processing device And a storage procedure for storing necessity information representing the storage device in association with an identifier for identifying the processing device or a user of the processing device;
When the transmission information including the identifier is received from the processing device, the necessity information corresponding to the identifier included in the transmission information among the necessity information needs the first conversion process for the transmission information. The transmission information is converted into the API input format and transmitted to the API, and the corresponding necessity information indicates that the first conversion process is not necessary for the transmission information. A first conversion procedure for transmitting the transmission information to the API;
When the output information is received from the API, the output information is converted into an input format for the processing device when the corresponding necessity information indicates that the second conversion processing is necessary for the output information. A second conversion procedure for transmitting the output information to the processing device when the corresponding necessity information indicates that the second conversion processing is unnecessary for the output information. Program to let you.
JP2012004977A 2012-01-13 2012-01-13 API control device, API control method and program Active JP5473022B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012004977A JP5473022B2 (en) 2012-01-13 2012-01-13 API control device, API control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012004977A JP5473022B2 (en) 2012-01-13 2012-01-13 API control device, API control method and program

Publications (2)

Publication Number Publication Date
JP2013145436A true JP2013145436A (en) 2013-07-25
JP5473022B2 JP5473022B2 (en) 2014-04-16

Family

ID=49041212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012004977A Active JP5473022B2 (en) 2012-01-13 2012-01-13 API control device, API control method and program

Country Status (1)

Country Link
JP (1) JP5473022B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018092734A1 (en) * 2016-11-15 2018-05-24 日本電気株式会社 Relay device, client device, data relay method, and program recording medium having computer-readable program recorded thereon
JP2018101417A (en) * 2016-12-19 2018-06-28 株式会社リコー Approach for accessing third-party content collaboration services on interactive whiteboard appliances by application using wrapper application program interface
JP2018101418A (en) * 2016-12-19 2018-06-28 株式会社リコー Approach for accessing third-party content collaboration services on interactive whiteboard appliances using wrapper application program interface
JP2019096244A (en) * 2017-11-28 2019-06-20 京セラドキュメントソリューションズ株式会社 Information processing system and information processing method
US10445158B2 (en) 2014-12-23 2019-10-15 Document Storage Systems, Inc. Computer readable storage media for dynamic service deployment and methods and systems for utilizing same

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170537B (en) * 2017-12-06 2021-02-02 北京像素软件科技股份有限公司 Game API realization method, device, interface server and readable storage medium
KR102341419B1 (en) * 2019-12-23 2021-12-21 주식회사 인포마인드 Apparatus and method for managing sales

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002091860A (en) * 2000-09-19 2002-03-29 Toshiba Corp Computer readable recording medium recorded with program, and computer system
JP2008112311A (en) * 2006-10-30 2008-05-15 Hitachi Ltd Method and system for business process execution, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002091860A (en) * 2000-09-19 2002-03-29 Toshiba Corp Computer readable recording medium recorded with program, and computer system
JP2008112311A (en) * 2006-10-30 2008-05-15 Hitachi Ltd Method and system for business process execution, and program

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10445158B2 (en) 2014-12-23 2019-10-15 Document Storage Systems, Inc. Computer readable storage media for dynamic service deployment and methods and systems for utilizing same
US10896404B2 (en) 2014-12-23 2021-01-19 Document Storage Systems, Inc. Computer readable storage media for dynamic service deployment and methods and systems for utilizing same
US11232405B2 (en) 2014-12-23 2022-01-25 Document Storage Systems, Inc. Computer readable storage media for dynamic service deployment and methods and systems for utilizing same
WO2018092734A1 (en) * 2016-11-15 2018-05-24 日本電気株式会社 Relay device, client device, data relay method, and program recording medium having computer-readable program recorded thereon
US20190273797A1 (en) * 2016-11-15 2019-09-05 Nec Corporation Relay apparatus, client apparatus, data relay method, and program storage medium in which computer-readable program is stored
JPWO2018092734A1 (en) * 2016-11-15 2019-10-17 日本電気株式会社 RELAY DEVICE, CLIENT DEVICE, DATA RELAY METHOD, AND PROGRAM
US10924576B2 (en) 2016-11-15 2021-02-16 Nec Corporation Relay apparatus, client apparatus, data relay method, and program storage medium in which computer-readable program is stored
JP2018101417A (en) * 2016-12-19 2018-06-28 株式会社リコー Approach for accessing third-party content collaboration services on interactive whiteboard appliances by application using wrapper application program interface
JP2018101418A (en) * 2016-12-19 2018-06-28 株式会社リコー Approach for accessing third-party content collaboration services on interactive whiteboard appliances using wrapper application program interface
JP2019096244A (en) * 2017-11-28 2019-06-20 京セラドキュメントソリューションズ株式会社 Information processing system and information processing method
CN110035044A (en) * 2017-11-28 2019-07-19 京瓷办公信息系统株式会社 Information processing system and information processing method

Also Published As

Publication number Publication date
JP5473022B2 (en) 2014-04-16

Similar Documents

Publication Publication Date Title
JP5473022B2 (en) API control device, API control method and program
CN106998297B (en) A kind of virtual machine migration method and device
CN109462505B (en) Method and apparatus for implementing cross-link communication between multiple blockchain networks
JP2022020946A (en) Information processing device, information processing system, communication format determination method, and program
US9967412B2 (en) Information processing apparatus, system, and control method for information processing apparatus
US20160364808A1 (en) System and method for an automated tax preparation kiosk
JP5593359B2 (en) COMMUNICATION CONTROL DEVICE, MESSAGE TRANSFER METHOD, AND MESSAGE TRANSFER PROGRAM
JP5626919B2 (en) Network system, authentication cooperation apparatus, authentication cooperation method, and program
JP2018151881A (en) Monitoring apparatus, monitoring method, and program
TW201203945A (en) Selectively controlling information flow in a collaborative environment
WO2021059852A1 (en) Information conversion device, information conversion system, information conversion method, and recording medium
JP6136192B2 (en) License management apparatus, license management system, and license management method
JP2016144186A (en) Communication information controller, relay system, communication information control method, and communication information control program
JP2019082946A (en) Information management system, information management method and program
JP2015103862A (en) Communication terminal, communication method and program
JP5478554B2 (en) Gateway apparatus and communication method
WO2012042734A1 (en) Access control information generating system
JP2013022872A (en) Image forming apparatus, method therein, and program
JP2016066186A (en) Account management method, account management server and account management system
CN103297328A (en) Information communication method and device
CN113949632A (en) Dynamic node configuration method and device for block chain
JP2014137672A (en) Management system, management method, and computer program
JP2021153316A (en) Mobile terminal, system, access method, and program
WO2015146215A1 (en) Network address translation device, network address translation system, network address translation method, and computer-readable recording medium
JP6497246B2 (en) Information processing apparatus and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130513

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131225

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140130

R150 Certificate of patent or registration of utility model

Ref document number: 5473022

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250