Skip to content

feat: expose available versions and offer simplest ping endpoint#36

Merged
esterlus merged 4 commits intomainfrom
este/apiversioning
Feb 18, 2026
Merged

feat: expose available versions and offer simplest ping endpoint#36
esterlus merged 4 commits intomainfrom
este/apiversioning

Conversation

@esterlus
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds API discovery and health check capabilities to the gnosis_vpn-server HTTP API. It introduces a root endpoint that exposes available API versions and a lightweight ping endpoint for health monitoring.

Changes:

  • Added /ping endpoint returning HTTP 204 No Content for health checks
  • Added / (root) endpoint returning API metadata (name, versions, latest version)
  • Updated routing configuration to mount new endpoints

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/ping.rs New module implementing a simple health check endpoint at /api/v1/ping returning HTTP 204 No Content
src/index.rs New module implementing API discovery endpoint at / returning JSON with API name and version information
src/main.rs Added module declarations for index and ping, mounted new endpoints in correct routing order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@esterlus esterlus merged commit b600094 into main Feb 18, 2026
4 checks passed
@esterlus esterlus deleted the este/apiversioning branch February 18, 2026 13:30
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.

3 participants