API Hub の依存関係は、API オペレーション間の関係を表示して管理するのに役立ちます。API の依存関係を検出および追跡することで、API エコシステムをより効率的に管理できます。たとえば、API の変更やサポート終了による潜在的な影響の把握、問題のトラブルシューティング、コストやコンプライアンス規制の遵守状況の分析において、依存関係が役立ちます。API は、API Hub 内または API Hub の外部に保存できます。
依存関係とは
API Hub は、API オペレーション間の方向性の関係として依存関係をモデル化します。1 つの API オペレーションがサプライヤーで、もう 1 つがコンシューマーという関係です。たとえば、PetStore API が Location API のオペレーションを呼び出すとします。この場合、オペレーションは Location API によって提供されるオペレーションに依存します。API Hub において、PetStore をコンシューマー、Location をサプライヤーと呼びます。
図 1 は、API オペレーション間のサプライヤーとコンシューマーの関係を示しています。Payment API の /debit オペレーションは、Fraud Detection API の /detect オペレーションを使用します。この関係では、デビット オペレーションがコンシューマー、不正検知オペレーションがサプライヤーです。
同様に、/detect は UserProfile API と GeoLocation API によって提供されるオペレーションを使用します。この場合、図 1 に示すように、/detect オペレーションがコンシューマーで、他の 2 つがサプライヤーです。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-09 UTC。"],[[["This page outlines how to manage API dependencies within Apigee and Apigee hybrid, focusing on how they help manage relationships between API operations."],["Dependencies are modeled as directional relationships between API operations, where a consumer API operation relies on a supplier API operation."],["API hub allows dependencies to be based on either API operations within the hub or external APIs not stored within the hub."],["Creating a dependency involves identifying a consumer and a supplier API, and using the API hub UI or API to establish the link between them."],["The use of API dependencies helps in areas such as discovering the potential impact of changing an API or troubleshooting issues."]]],[]]