feat: add WSO2 API Manager self hosted gateway#5
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR adds comprehensive support for discovering and managing APIs from self-hosted WSO2 gateways. It introduces config-driven gateway discovery, runtime API enumeration from gateway discovery endpoints, enhanced API mapping and endpoint enrichment, new Backstage API entities for gateway-discovered APIs, and updates multiple UI components to display and manage gateway information alongside catalog APIs. Changes
Sequence DiagramsequenceDiagram
participant Config as Config
participant Provider as Wso2ApiEntityProvider
participant Discovery as Gateway Discovery URL
participant Choreo as Choreo Endpoint
participant Backstage as Backstage Catalog
Config->>Provider: Load selfHostedGateways config
Provider->>Provider: Initialize for each gateway
loop For each configured gateway
Provider->>Discovery: GET {discoveryUrl}
Discovery-->>Provider: API ID list [api1, api2, ...]
loop For each API ID
Provider->>Discovery: GET {discoveryUrl}/{apiId}
Discovery-->>Provider: API metadata (name, version, etc.)
alt Has Swagger URL
Provider->>Choreo: GET Swagger definition
Choreo-->>Provider: OpenAPI specification
end
alt Has Document List
Provider->>Choreo: GET document list
Choreo-->>Provider: Documents array
end
Provider->>Provider: Enrich with gateway endpoints<br/>Add annotations for discovery-type,<br/>gateway-vendor, api-endpoints
end
end
Provider->>Backstage: Create/update API entities<br/>in wso2-gateways namespace
Backstage-->>Provider: Confirmation
Provider-->>Config: Discovery complete with<br/>enriched API catalog
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
Release Notes