-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): add support for API extensions #692
Conversation
- Implemented APIExtension interface for extending APIs through plugins. - Added RegisterAPIExtension function for registering API extensions. - Integrated API extension registration and configuration in portal and HTTP service. - Modified plugin management to handle API extensions.
|
Caution Review failedThe pull request is closed. WalkthroughThis update adds an API extension framework to the project. A new file in the core package defines the Changes
Sequence Diagram(s)sequenceDiagram
participant Portal
participant PluginManager
participant APIExtensionRegistry
Portal->>PluginManager: Retrieve available plugins
PluginManager->>Portal: Return plugin list
Portal->>PluginManager: Check for API extensions (via PluginHasAPIExtensions)
alt Plugin has API extensions
PluginManager->>Portal: Provide API extension(s)
Portal->>APIExtensionRegistry: Call RegisterAPIExtension(extension)
else
Portal-->>Portal: Skip registration
end
sequenceDiagram
participant HTTPService
participant Router
participant APIExtensionRegistry
participant APIExtension
HTTPService->>Router: Create subrouter for API
HTTPService->>APIExtensionRegistry: GetAPIExtensions(apiName)
APIExtensionRegistry->>HTTPService: Return list of API extensions
loop For each extension
HTTPService->>APIExtension: Call Configure(router, accessService)
alt Configuration succeeds
APIExtension-->>HTTPService: Success log
else Configuration fails
APIExtension-->>HTTPService: Error log
end
end
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit