[PR #491] [MERGED] Feature/add nameservers API endpoint #12672

Closed
opened 2026-08-05 02:06:25 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/491
Author: @mlsmaycon
Created: 10/2/2022
Status: Merged
Merged: 10/10/2022
Merged by: @mlsmaycon

Base: mainHead: feature/add-nameserver-api


📝 Commits (9)

  • a3f671f Add API definition for nameserver group
  • 7357a0c Update OAPI lib and set compatibility flag for prefix enum
  • 2bfabd9 Add nameservers handlers and tests
  • 3d83217 Add nameserver api logic and register handlers
  • f10b77b typo
  • ba2b585 unnecessary use of fmt.Sprintf
  • 74781b9 unnecessary use of fmt.Sprintf
  • e3297a1 use api path /api/dns/nameservers
  • d13a6f9 Merge branch 'main' into feature/add-nameserver-api

📊 Changes

10 files changed (+1061 additions, -120 deletions)

View changed files

📝 dns/nameserver.go (+1 -0)
📝 management/server/http/api/cfg.yaml (+2 -0)
📝 management/server/http/api/generate.sh (+1 -1)
📝 management/server/http/api/openapi.yml (+242 -0)
📝 management/server/http/api/types.gen.go (+206 -116)
📝 management/server/http/handler.go (+8 -0)
management/server/http/nameservers.go (+286 -0)
management/server/http/nameservers_test.go (+287 -0)
📝 management/server/http/routes.go (+1 -1)
📝 management/server/http/util.go (+27 -2)

📄 Description

Add nameservers endpoint and Open API definition

updated open api generator cli


🔄 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/491 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 10/2/2022 **Status:** ✅ Merged **Merged:** 10/10/2022 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `feature/add-nameserver-api` --- ### 📝 Commits (9) - [`a3f671f`](https://github.com/netbirdio/netbird/commit/a3f671f5b1ddbd4f9b09ace776d539eeedaffd56) Add API definition for nameserver group - [`7357a0c`](https://github.com/netbirdio/netbird/commit/7357a0ce61a53e889a2ee42e980114c02ca7a36a) Update OAPI lib and set compatibility flag for prefix enum - [`2bfabd9`](https://github.com/netbirdio/netbird/commit/2bfabd9d6c534003e43a9bb4fe7a0d841f7a3ce0) Add nameservers handlers and tests - [`3d83217`](https://github.com/netbirdio/netbird/commit/3d8321766cea00f11fd7f3fc3a1b502287d33063) Add nameserver api logic and register handlers - [`f10b77b`](https://github.com/netbirdio/netbird/commit/f10b77bb490467d13d99d835ab6261d5b670d236) typo - [`ba2b585`](https://github.com/netbirdio/netbird/commit/ba2b58573de55c71f71b0cfadb73ab7782f7aae9) unnecessary use of fmt.Sprintf - [`74781b9`](https://github.com/netbirdio/netbird/commit/74781b96b3f6754f8a97b03129757b3bf01c2adb) unnecessary use of fmt.Sprintf - [`e3297a1`](https://github.com/netbirdio/netbird/commit/e3297a168b71a65ba2493789ba3211250a566d37) use api path /api/dns/nameservers - [`d13a6f9`](https://github.com/netbirdio/netbird/commit/d13a6f954d83066da2c2e4c2dc15a1cd2acefb9d) Merge branch 'main' into feature/add-nameserver-api ### 📊 Changes **10 files changed** (+1061 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `dns/nameserver.go` (+1 -0) 📝 `management/server/http/api/cfg.yaml` (+2 -0) 📝 `management/server/http/api/generate.sh` (+1 -1) 📝 `management/server/http/api/openapi.yml` (+242 -0) 📝 `management/server/http/api/types.gen.go` (+206 -116) 📝 `management/server/http/handler.go` (+8 -0) ➕ `management/server/http/nameservers.go` (+286 -0) ➕ `management/server/http/nameservers_test.go` (+287 -0) 📝 `management/server/http/routes.go` (+1 -1) 📝 `management/server/http/util.go` (+27 -2) </details> ### 📄 Description Add nameservers endpoint and Open API definition updated open api generator cli --- <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 02:06:25 -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#12672