Search documentation of Metastatic

# Metastatic.Semantic.Domains.ExternalApi (Metastatic v0.13.2)

View Source

External API operation patterns for semantic enrichment.

This module defines patterns for detecting external/third-party API calls across multiple languages. These are higher-level service integrations beyond basic HTTP. Patterns are registered with the `Metastatic.Semantic.Patterns` registry at module load time.

## Supported Services

### Cloud Services

- AWS SDK - Amazon Web Services
- Google Cloud - GCP services
- Azure - Microsoft Azure
- Stripe - Payment processing
- Twilio - Communication APIs
- SendGrid - Email services

### Social/OAuth

- GitHub API - GitHub integrations
- Slack API - Slack integrations
- Twitter/X API - Social media

## External API Operations

Operation | Description
--- | ---
`:call` | Generic API call
`:upload` | Upload to external service
`:download` | Download from external service
`:send` | Send notification/message
`:charge` | Payment/billing operation
`:webhook` | Webhook handling
`:search` | Search/query external service
`:sync` | Synchronization with service

## Pattern Structure

Each pattern is a tuple of `{pattern, spec}` where:

- `pattern` - String or Regex to match function names
- `spec` - Map with operation details:
  - `:operation` - The external API operation type
  - `:framework` - The service/SDK identifier
  - `:extract_target` - Strategy for extracting service/resource name

## Summary

### Functions

register_all()

Registers all external API patterns for all languages.

## Functions

# register_all()

    @spec register_all() :: :ok

Registers all external API patterns for all languages.

Called automatically when the module is loaded. Can also be called manually to re-register patterns (e.g., after clearing).