[PR #2579] [MERGED] [management] Add accessible peers endpoint #15357

Closed
opened 2026-08-05 03:07:28 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2579
Author: @bcmmbaga
Created: 9/11/2024
Status: Merged
Merged: 9/12/2024
Merged by: @bcmmbaga

Base: mainHead: accesible-peers-endpoint


📝 Commits (5)

  • 7dd5149 move accessible peer to separate endpoint in api doc
  • 2089c2a add endpoint to get accessible peers
  • 93bfe68 Update management/server/http/api/openapi.yml
  • 36396cd Update management/server/http/api/openapi.yml
  • 7af501f Update management/server/http/peers_handler.go

📊 Changes

4 files changed (+133 additions, -117 deletions)

View changed files

📝 management/server/http/api/openapi.yml (+61 -14)
📝 management/server/http/api/types.gen.go (+18 -75)
📝 management/server/http/handler.go (+1 -0)
📝 management/server/http/peers_handler.go (+53 -28)

📄 Description

Describe your changes

Refactored the accessible peers from the /api/peers/{peerId} response to a dedicated endpoint /api/peers/{peerId}/accessible-peers.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2579 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 9/11/2024 **Status:** ✅ Merged **Merged:** 9/12/2024 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `accesible-peers-endpoint` --- ### 📝 Commits (5) - [`7dd5149`](https://github.com/netbirdio/netbird/commit/7dd514939e1402081b9113d71c80d160363dfd33) move accessible peer to separate endpoint in api doc - [`2089c2a`](https://github.com/netbirdio/netbird/commit/2089c2aa1328ab9f2e693b3c57e50c9f084de351) add endpoint to get accessible peers - [`93bfe68`](https://github.com/netbirdio/netbird/commit/93bfe68e21b7206aa9c13098278007ca43d387f8) Update management/server/http/api/openapi.yml - [`36396cd`](https://github.com/netbirdio/netbird/commit/36396cdb6f8f3b0c1aecba1538d3ce61dd687233) Update management/server/http/api/openapi.yml - [`7af501f`](https://github.com/netbirdio/netbird/commit/7af501f26f27301eacd007258d827be5e36fcdab) Update management/server/http/peers_handler.go ### 📊 Changes **4 files changed** (+133 additions, -117 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/api/openapi.yml` (+61 -14) 📝 `management/server/http/api/types.gen.go` (+18 -75) 📝 `management/server/http/handler.go` (+1 -0) 📝 `management/server/http/peers_handler.go` (+53 -28) </details> ### 📄 Description ## Describe your changes Refactored the accessible peers from the` /api/peers/{peerId}` response to a dedicated endpoint `/api/peers/{peerId}/accessible-peers`. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:28 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15357