JP2013145436A - Control apparatus for api, control method for api and program - Google Patents
Control apparatus for api, control method for api and program Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims description 77
- 238000006243 chemical reaction Methods 0.000 claims abstract description 187
- 230000005540 biological transmission Effects 0.000 claims abstract description 87
- 238000012545 processing Methods 0.000 claims description 85
- 238000004891 communication Methods 0.000 claims description 5
- 238000010521 absorption reaction Methods 0.000 description 65
- 239000008186 active pharmaceutical agent Substances 0.000 description 54
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Computer And Data Communications (AREA)
- Stored Programmes (AREA)
Abstract
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.
例えば、既存の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.
以下、本発明の実施形態について図面を参照して説明する。 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用制御装置100は、サービスシステム200および連携システム301〜30m(ただし、mは1以上の整数)と通信する。
The
サービスシステム200は、API201〜20nを有する。本実施形態では、n=2とする。なお、nは2に限らず1以上の整数であれば適宜変更可能である。API201および202は、それぞれ、自己に割り当てられた処理を規定したプログラムを実行することによって、自己に割り当てられた処理を実行する。
The
以下、API201の名称を「F_API」とし、API202の名称を「G_API」とする。
Hereinafter, the name of the
サービスシステム200は、サービスシステム200の利用者が使用する利用者端末400と接続し、利用者端末400にAPI201や202を利用させる。
The
連携システム301〜30mは、それぞれ、処理装置の一例である。
Each of the
本実施形態では、連携システム301〜30mは、それぞれ、別々の企業にて管理されているとする。なお、連携システム301〜30mは、別々の企業にて管理されずに同一の企業にて管理されてもよいし、個人等にて管理されてもよい。
In this embodiment, it is assumed that the
連携システム301〜30mには、それぞれ、自システムまたは自システムの利用者を識別するための識別子が付加されている。
Each of the
識別子としては、例えば、自システムを管理している企業(自システムの利用者)の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
連携システム301〜30mは、それぞれ、サービスシステム200内のAPIを使用するためのAPI呼び出し要求を、API用制御装置100に送信する。
Each of the
なお、API呼び出し要求は、サービスシステム200内のAPIを使用するための送信情報の一例である。
The API call request is an example of transmission information for using the API in the
本実施形態では、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呼び出し要求「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用制御装置100は、アクセス制御部101と、WebAPI−GW(ゲートウェイ)102と、管理者入力部103と、を含む。WebAPI−GW102は、テーブル記憶部1と、情報制御部2と、を含む。情報制御部2は、差分吸収管理部21および22を含む。
The
アクセス制御部101は、連携システム301〜30mの各々について認証を行いWebAPI−GW102へのアクセスを制御する。なお、アクセス制御部101が行う認証は、公知の手法(例えば、企業IDやIP(Internet Protocol)アドレスの照合)にて実行される。
The
WebAPI−GW102は、アクセス制御部101にてアクセスが許容された連携システムから、API呼び出し要求を受信する。
The WebAPI-
WebAPI−GW102は、例えば、API呼び出し要求の形式を、対象APIの入力形式に変換し、変換後のAPI呼び出し要求を対象APIに送信する。
For example, the Web API-
また、WebAPI−GW102は、例えば、API呼び出し要求に応じて処理を実行した対象APIからの返値(戻り値)を、API呼び出し要求の送信元の連携システム(以下「送信元連携システム」と称する)の入力形式に変換し、変換後の返値を送信元連携システムに送信する。
Further, for example, the WebAPI-
なお、対象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
要否情報は、連携システム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
変換式テーブルには、第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
図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
また、図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
差分吸収管理部21は、第1変換手段の一例である。
The difference
差分吸収管理部21は、例えば、連携システム301〜30mのいずれかからAPI呼び出し要求を受信すると、テーブル記憶部1内の要否情報のうち、API呼び出し要求に含まれる企業IDに対応する要否情報(以下「該当要否情報」と称する)が、そのAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、そのAPI呼び出し要求を、対象API用の入力形式に変換して対象APIに送信し、該当要否情報が、そのAPI呼び出し要求について第1変換処理が必要ない旨を表す場合に、そのAPI呼び出し要求を、対象APIに送信する。
For example, when the difference
差分吸収管理部22は、第2変換手段の一例である。
The difference
差分吸収管理部22は、例えば、対象APIから返値を受信すると、該当要否情報が、その返値について第2変換処理が必要である旨を表す場合に、その返値を、送信元連携システム用の入力形式に変換して送信元連携システムに送信し、該当要否情報が、その返値について第2変換処理が必要ない旨を表す場合に、その返値を、送信元連携システムに送信する。
For example, when the difference
管理者入力部103は、設定手段の一例である。
The
管理者入力部103は、API用制御装置100の管理者(以下、単に「管理者」と称する)による企業ID、要否情報、可否情報および変換式の入力を受け付け、要否情報、可否情報および変換式を企業IDに対応づけてテーブル記憶部1に設定する。
The
次に、動作を説明する。 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
管理者入力部103は、要否情報、可否情報および変換式を企業IDと共に受け付けると(ステップS401)、要否情報、可否情報および変換式を企業IDに対応づけてテーブル記憶部1に設定する(ステップS402)。以下では、テーブル記憶部1に、図2に示したAPI対応テーブル10aと図3に示した変換式テーブル10bが記憶されたとする。
When the
図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
アクセス制御部101は、連携システム301がWebAPI−GW102にアクセスすることを禁止する認証結果を得ると、エラー情報を連携システム301に送信する。
When the
一方、アクセス制御部101は、連携システム301がWebAPI−GW102にアクセスすることを許容する認証結果を得ると、API呼び出し要求「F_API(aaa,S−001,1050)」を、差分吸収管理部21に出力する。
On the other hand, when the
差分吸収管理部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
該当可否情報が利用可10a1を示すと(ステップS503)、差分吸収管理部21は、対象API(API201)が連携システム301で利用可能であると判断する。
When the corresponding availability information indicates the availability 10a1 (step S503), the difference
一方、該当可否情報が利用不可10a2を示すと(ステップS503)、差分吸収管理部21は、対象API(API201)が連携システム301で利用不可であると判断する。
On the other hand, when the corresponding availability information indicates the unusable 10a2 (step S503), the difference
差分吸収管理部21は、利用不可と判断した場合、アクセス制御部101を介して連携システム301(送信元連携システム)に、エラー情報を送信する(ステップS504)。
If the difference
なお、本例では、該当可否情報が利用可10a1を示すため、差分吸収管理部21は、利用可と判断する。
In this example, since the corresponding availability information indicates the availability 10a1, the difference
差分吸収管理部21は、利用可と判断した場合、対象組合せ(本例では、企業ID「aaa」とAPI201(F_API)との組合せ)に対応する要否情報(該当要否情報)を、API対応テーブル10aから読み出す(ステップS505)。
If the difference
該当要否情報が、変換否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
一方、該当要否情報が、変換否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
本例では、該当要否情報が「呼出値: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
続いて、差分吸収管理部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
なお、変換式「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
続いて、差分吸収管理部21は、API呼び出し要求「F_API(aaa,S−001,1000)」を、対象APIであるAPI201に送信する(ステップS510)。
Subsequently, the difference
サービスシステム200内のAPI201は、API呼び出し要求「F_API(aaa,S−001,1000)」を受け付けると、商品型番S−001の商品の価格1000円(税抜き)をデータベースに登録する処理を実行する。
When the
API201は、処理を終了すると、API呼び出し要求の送信元(本例では、提携システム301)を宛先として設定した返値(処理結果)を、差分吸収管理部22に送信する。
When the process ends, the
本実施形態では、API201は、返値として、API201にて正常登録が行われた旨を示す正常登録コード「1」を出力する。
In the present embodiment, the
なお、API201は、API呼び出し要求に応じた処理を実行できなかった場合には、API呼び出し要求の送信元を宛先として設定したエラー情報を、差分吸収管理部22に送信する。差分吸収管理部22は、エラー情報を受信すると、そのエラー情報に設定された宛先に、そのエラー情報を、アクセス制御部101を介して送信する。
If the
図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
該当要否情報が、変換否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
一方、該当要否情報が、変換否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
本例では、該当要否情報が「返値: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
続いて、差分吸収管理部22は、読み出された変換式「aaa_f_002=正常登録コード:1→10」に従って、返値「1」を、返値に設定された宛先での入力形式に応じた返値「10」に変換する(ステップS605)。
Subsequently, the difference
なお、変換式「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
続いて、差分吸収管理部22は、返値「10」を、返値に設定された宛先(連携システム301)に、アクセス制御部101を介して送信する(ステップS606)。
Subsequently, the difference
返値に設定された宛先である連携システム301は、返値を受信すると、返値に応じた処理結果を、連携システム301、または、連携システム301に接続されている利用者端末(不図示)に表示する。
Upon receiving the return value, the
次に、本実施形態の効果を説明する。 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
差分吸収管理部22は、対象APIから返値を受信すると、該当要否情報が、その返値について第2変換処理が必要である旨を表す場合に、その返値を、送信元連携システム用の入力形式に変換して送信元連携システムに送信し、該当要否情報が、その返値について第2変換処理が不要である旨を表す場合に、その返値を、送信元連携システムに送信する。
When the difference
このため、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
なお、上記効果は、テーブル記憶部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
図7は、テーブル記憶部1と差分吸収管理部21および22とからなるAPI用制御装置を示した図である。
FIG. 7 is a diagram illustrating an API control device including the table storage unit 1 and the difference
また、本実施形態では、テーブル記憶部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
差分吸収管理部22は、該当要否情報が返値について第2変換処理が必要である旨を表す場合には、第2変換手法に従ってその返値を送信先となる連携システム用の入力形式に変換する。
When the corresponding necessity information indicates that the second conversion process is necessary for the return value, the difference
このため、第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
このため、連携システムによる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
このため、連携システム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
なお、図1に示したWebAPI−GW102は、コンピュータにて実現されてもよい。この場合、コンピュータは、コンピュータにて読み取り可能なCD−ROM(Compact Disk Read Only Memory)のような記録媒体に記録されたプログラムを読込み実行することによって、テーブル記憶装置1、差分吸収管理部21および22として機能する。なお、記録媒体は、CD−ROMに限らず適宜変更可能である。
Note that the WebAPI-
また、API用制御装置100は、複数の装置にて構成されてもよい。例えば、API用制御装置100に含まれる各部が、独立した装置として設けられてもよい。
Further, the
(第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
図8において、図1に示したものと同一構成のものには同一符号を付してある。以下、図8に示したAPI用制御装置100Aについて、図1に示したAPI用制御装置100と異なる点を中心に説明する。
In FIG. 8, the same components as those shown in FIG. Hereinafter, the
図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
これに対して第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
図8に示したAPI用制御装置100Aでは、図1に示したテーブル記憶部1の代わりにテーブル記憶部1Aが用いられ、図1に示した差分吸収管理21の代わりに差分吸収管理部21Aが用いられ、図1に示した差分吸収管理22の代わりに差分吸収管理部22Aが用いられる。
In the
テーブル記憶部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
例えば、企業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
また、企業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
差分吸収管理部21Aは、第1変換手段の一例である。
The difference
差分吸収管理部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
続いて、差分吸収管理部21Aは、変更後のAPI呼び出し要求「F_API(aaa,S−001,1050)」に示された企業ID「aaa」と、API呼び出し要求に対象APIとして示されたF_API(API201)と、の組合せ(対象組合せ)に対応する該当可否情報を、API対応テーブル10aから読み出し、以下、差分吸収管理部21と同様に動作する(図5参照)。
Subsequently, the difference
差分吸収管理部22Aは、第2変換手段の一例である。
The difference
差分吸収管理部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
続いて、差分吸収管理部22Aは、テーブル記憶部1A内の該当要否情報が、その返値について第2変換処理が必要である旨を表す場合に、差分吸収管理部22が用いた手法と同様の手法で、その返値を、API呼び出し要求を送信した連携システム301用の入力形式に変換する。その後、差分吸収管理部22Aは、その変換結果を、呼び出し要求情報が対象APIとして示すP_APIからの戻り値として、連携システム301に送信する。
Subsequently, the difference
例えば、差分吸収管理部22Aは、変換結果に、その変換結果がP_APIからの戻り値であることを示すラベル情報を付し、ラベル情報が付された変換結果を、連携システム301に送信する。
For example, the difference
一方、差分吸収管理部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
例えば、差分吸収管理部22Aは、その返値に、その返値がP_APIからの戻り値であることを示すラベル情報を付し、ラベル情報が付された返値を、連携システム301に送信する。
For example, the difference
本実施形態によれば、テーブル記憶部1Aは、サービスシステム200内のAPIの名称(識別情報)と、他のAPIの名称(識別情報)と、を互いに関連づけて格納する。
According to the present embodiment, the table storage unit 1A stores an API name (identification information) in the
差分吸収管理部21Aは、連携システムから、他のAPIの名称を有するAPI呼び出し要求を受信すると、該当要否情報がそのAPI呼び出し要求について第1変換処理が必要である旨を表す場合に、そのAPI呼び出し要求を、他のAPIの名称に関連づけられている名称にて特定される対象API用の入力形式に変換して、その対象APIに送信し、該当要否情報がそのAPI呼び出し要求について第1変換処理が不要である旨を表す場合に、そのAPI呼び出し要求を、他のAPIの名称に関連づけられている名称にて特定される対象APIに送信する。
When the difference
このため、各連携システムが、サービスシステム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
また、本実施形態では、差分吸収管理部22Aは、差分吸収管理部21Aが連携システムから他のAPIの名称を有するAPI呼び出し要求を受信した後に、該他のAPIの名称に関連づけられている名称にて特定される対象APIから返値を受信すると、以下の処理を行う。
In the present embodiment, the difference
該当要否情報がその返値について第2変換処理が必要である旨を表す場合には、差分吸収管理部22Aは、その返値を、API呼び出し要求の送信元である連携システム用の入力形式に変換し、その変換結果を該他のAPIからの戻り値として、その連携システムに送信する。
When the corresponding necessity information indicates that the second conversion process is necessary for the return value, the difference
一方、該当要否情報がその返値について第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
このため、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-
また、API用制御装置100Aは、複数の装置にて構成されてもよい。例えば、API用制御装置100Aに含まれる各部が、独立した装置として設けられてもよい。
Further, the
以上説明した各実施形態において、図示した構成は単なる一例であって、本発明はその構成に限定されるものではない。 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
103 administrator input unit 1, 1A
301 ~ 30m cooperation system
Claims (8)
前記送信情報を前記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変換手法を記憶し、かつ、前記第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
前記処理装置による前記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.
前記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.
前記第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.
前記要否情報と前記識別子とを受け付け、当該要否情報を当該識別子と対応づけて前記記憶手段に設定する設定手段をさらに含む、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用の入力形式に変換する第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.
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)
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)
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)
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 |
-
2012
- 2012-01-13 JP JP2012004977A patent/JP5473022B2/en active Active
Patent Citations (2)
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)
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 |