Skip to content

Add connections CRUD endpoints#6

Merged
winkletinkle merged 1 commit into
masterfrom
feat/connections
Jun 12, 2026
Merged

Add connections CRUD endpoints#6
winkletinkle merged 1 commit into
masterfrom
feat/connections

Conversation

@hamza-mohd

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 12, 2026 14:22
@winkletinkle winkletinkle merged commit b3532e9 into master Jun 12, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an authenticated, in-memory Connections API to the remote provider scaffold to support local development and Meshery remote-provider contract testing.

Changes:

  • Introduces /api/connections and /api/connections/{id} CRUD endpoints backed by an in-memory store.
  • Extends capabilities metadata and README to advertise the new “connections” feature and endpoints.
  • Adds end-to-end CRUD tests covering authorization, create/list/get/update/delete flows.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
README.md Documents the new Connections CRUD endpoints and supported query/payload formats.
internal/provider/server.go Registers connections routes and advertises the connections capability.
internal/provider/server_test.go Adds tests for the connections capability advertisement and full CRUD behavior.
internal/provider/connections.go Implements in-memory connection store plus list/create/get/update/delete handlers.

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

Comment on lines +61 to +65
s.mux.HandleFunc("GET /api/connections", s.handleConnections)
s.mux.HandleFunc("POST /api/connections", s.handleConnections)
s.mux.HandleFunc("GET /api/connections/{id}", s.handleConnectionByID)
s.mux.HandleFunc("PUT /api/connections/{id}", s.handleConnectionByID)
s.mux.HandleFunc("DELETE /api/connections/{id}", s.handleConnectionByID)
Comment on lines +258 to +261
query := r.URL.Query()
page := parsePositiveInt(query.Get("page"), 1)
pageSize := parsePositiveInt(firstNonEmpty(query.Get("pageSize"), query.Get("pagesize")), 0)
search := firstNonEmpty(query.Get("search"), query.Get("q"))
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