feat: add structured GET /api/v1/connections response#39
Merged
ahmadnazir merged 1 commit intoMay 21, 2026
Merged
Conversation
ahmadnazir
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related PR
beamlynx/beamlynx-ui#29
Summary
Replaces the raw
GET /api/v1/connectionsresponse with a structured payload the UI can use to list live database connections, show human-readable labels, and know which connection Pine currently has selected.Changes
API —
GET /api/v1/connectionsResponse shape (wrapped in
result, consistent withGET /api/v1/connection):{ "result": { "version": "0.35.0", "selected-connection-id": "localhost:5432", "connections": [ { "id": "localhost:5432", "label": "localhost:5432 · myapp_dev" } ] } }selected-connection-id— value of@db/connection-id(Pine’s currently selected connection), ornullwhen no connection is selected.connections— all registered connection pools.id— existing connection handle (host:port), unchanged from prior behavior.label— display string{host}:{port} · {dbname}, derived from the pool JDBC URL.API surface
Only change to an existing route:
GET /api/v1/connections— same path, new response shape (was raw@poolsmap; now structuredresultas above).docker/init-pine.shcalls it once for debug logging and does not parse the body.