merovingian_add_consumer
Register a consumer relationship between two repositories to track cross-service API dependencies. This enables blast radius analysis by recording which consumer repo calls a specific endpoint on a producer repo.
Instructions
Register a consumer relationship between two repositories.
Call this to tell Merovingian that consumer_repo calls an endpoint on producer_repo. Once registered, merovingian_impact will include this relationship in its blast radius analysis.
Args: consumer_repo: Name of the repo that calls the endpoint (e.g. 'web-client') producer_repo: Name of the repo that owns the endpoint (e.g. 'api-server') endpoint_method: HTTP method (e.g. 'GET', 'POST') endpoint_path: Endpoint path (e.g. '/api/v1/transactions')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| consumer_repo | Yes | ||
| endpoint_path | Yes | ||
| producer_repo | Yes | ||
| endpoint_method | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |