[management] Prevent deletion of peers linked to network routers (#3881)

- Prevent deletion of peers linked to network routers
- Add API endpoint to list all network routers
This commit is contained in:
Bethuel Mmbaga
2025-05-29 18:50:00 +03:00
committed by GitHub
parent 0492c1724a
commit 684501fd35
3 changed files with 77 additions and 3 deletions

View File

@@ -4068,6 +4068,31 @@ paths:
"$ref": "#/components/responses/forbidden"
'500':
"$ref": "#/components/responses/internal_error"
/api/networks/routers:
get:
summary: List all Network Routers
description: Returns a list of all routers in a network
tags: [ Networks ]
security:
- BearerAuth: [ ]
- TokenAuth: [ ]
responses:
'200':
description: A JSON Array of Routers
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/NetworkRouter'
'400':
"$ref": "#/components/responses/bad_request"
'401':
"$ref": "#/components/responses/requires_authentication"
'403':
"$ref": "#/components/responses/forbidden"
'500':
"$ref": "#/components/responses/internal_error"
/api/dns/nameservers:
get:
summary: List all Nameserver Groups