mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 01:38:41 +02:00
Update route API doc with max domain number (#2516)
This commit is contained in:
parent
92a0092ad5
commit
95174d4619
@ -1064,12 +1064,12 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
example: 10.64.0.0/24
|
example: 10.64.0.0/24
|
||||||
domains:
|
domains:
|
||||||
description: Domain list to be dynamically resolved. Conflicts with network
|
description: Domain list to be dynamically resolved. Max of 32 domains can be added per route configuration. Conflicts with network
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
maxLength: 255
|
maxLength: 32
|
||||||
example: "example.com"
|
example: "example.com"
|
||||||
metric:
|
metric:
|
||||||
description: Route metric number. Lowest number has higher priority
|
description: Route metric number. Lowest number has higher priority
|
||||||
@ -2759,4 +2759,4 @@ paths:
|
|||||||
'403':
|
'403':
|
||||||
"$ref": "#/components/responses/forbidden"
|
"$ref": "#/components/responses/forbidden"
|
||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
|
@ -995,7 +995,7 @@ type Route struct {
|
|||||||
// Description Route description
|
// Description Route description
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
|
||||||
// Domains Domain list to be dynamically resolved. Conflicts with network
|
// Domains Domain list to be dynamically resolved. Max of 32 domains can be added per route configuration. Conflicts with network
|
||||||
Domains *[]string `json:"domains,omitempty"`
|
Domains *[]string `json:"domains,omitempty"`
|
||||||
|
|
||||||
// Enabled Route status
|
// Enabled Route status
|
||||||
@ -1037,7 +1037,7 @@ type RouteRequest struct {
|
|||||||
// Description Route description
|
// Description Route description
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
|
||||||
// Domains Domain list to be dynamically resolved. Conflicts with network
|
// Domains Domain list to be dynamically resolved. Max of 32 domains can be added per route configuration. Conflicts with network
|
||||||
Domains *[]string `json:"domains,omitempty"`
|
Domains *[]string `json:"domains,omitempty"`
|
||||||
|
|
||||||
// Enabled Route status
|
// Enabled Route status
|
||||||
|
Loading…
x
Reference in New Issue
Block a user