Skip to content
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

Add HTTP Server capabilities and provide external HTTP API #1443

Closed
zwmagic opened this issue Feb 4, 2024 · 1 comment
Closed

Add HTTP Server capabilities and provide external HTTP API #1443

zwmagic opened this issue Feb 4, 2024 · 1 comment
Assignees
Labels
area/framework Issues or PRs releated to sermant core service kind/feature Issue for new feature Stale

Comments

@zwmagic
Copy link
Collaborator

zwmagic commented Feb 4, 2024

What would you like to be added?

Add support for HTTP server to the Sermant framework and provide its own HTTP API endpoint

Why is this needed?

HTTP API capabilities enhance Sermant's functionality and interoperability. For example, it can implement health check, monitoring indicator collection, service registration and discovery, dynamic installation and uninstallation of plug-ins, plug-in customization functions, etc.

plan

After introducing the HTTP server capability, Sermant's core functions and each plug-in can independently provide their own HTTP API services.

All externally exposed APIs will follow the following format: http://localhost:{port}/{pluginName}/{specificPath}. In this structure:

  • localhost refers to the host address where the Sermant service runs.
  • {port} is the port number that the Sermant service listens on, allowing users to customize it.
  • {pluginName} refers to the name of the plugin requesting the service. When the requested service belongs to Sermant core functionality, the value of pluginName will be set to "sermant".
  • {specificPath} is the specific API path provided by the plugin.
@zwmagic zwmagic added the kind/feature Issue for new feature label Feb 4, 2024
@hanbingleixue hanbingleixue added the area/framework Issues or PRs releated to sermant core service label Feb 5, 2024
Copy link

github-actions bot commented Mar 5, 2024

This issue seems to be Stale. We will close it in a few days.

@github-actions github-actions bot added the Stale label Mar 5, 2024
@kkf1 kkf1 changed the title 增加HTTP Server能力,提供对外HTTP API Add HTTP Server capabilities and provide external HTTP API Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/framework Issues or PRs releated to sermant core service kind/feature Issue for new feature Stale
Projects
None yet
Development

No branches or pull requests

2 participants