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 initial HTTP API endpoints #143

Merged
merged 1 commit into from
Jul 18, 2024
Merged

Add initial HTTP API endpoints #143

merged 1 commit into from
Jul 18, 2024

Conversation

jhalter
Copy link
Owner

@jhalter jhalter commented Jul 18, 2024

This replaces the --stat-port flag and HTTP endpoint with a new --api-addr flag, with a couple of additional administrative endpoints to provide functionality present in the original Hotline server UI but missing in Mobius.

  • POST /api/v1/shutdown - sends message to connected clients and shuts down the server
  • GET /api/v1/reload- reloads the configuration files from disk
  • GET /api/v1/stats - returns server runtime statistics and counters.

Fixes #4

@jhalter jhalter merged commit b6e3be9 into master Jul 18, 2024
1 check failed
@jhalter jhalter mentioned this pull request Jul 18, 2024
@jhalter jhalter deleted the admin_api branch July 21, 2024 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement DisconnectMsg transaction type & friendly server shutdown
1 participant