mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-19 17:31:39 +02:00
Merge pull request #923 from netbirdio/chore/reorder_openapi
Update openapi doc
This commit is contained in:
commit
b2447cd9a3
@ -65,7 +65,7 @@ func (h *AccountsHandler) UpdateAccount(w http.ResponseWriter, r *http.Request)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var req api.PutApiAccountsAccountIdJSONBody
|
var req api.PutApiAccountsAccountIdJSONRequestBody
|
||||||
err = json.NewDecoder(r.Body).Decode(&req)
|
err = json.NewDecoder(r.Body).Decode(&req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.WriteErrorResponse("couldn't parse JSON request", http.StatusBadRequest, w)
|
util.WriteErrorResponse("couldn't parse JSON request", http.StatusBadRequest, w)
|
||||||
|
@ -32,6 +32,7 @@ tags:
|
|||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
Account:
|
Account:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
description: Account ID
|
description: Account ID
|
||||||
@ -43,6 +44,7 @@ components:
|
|||||||
- id
|
- id
|
||||||
- settings
|
- settings
|
||||||
AccountSettings:
|
AccountSettings:
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
peer_login_expiration_enabled:
|
peer_login_expiration_enabled:
|
||||||
description: Enables or disables peer login expiration globally. After peer's login has expired the user has to log in (authenticate). Applies only to peers that were added by a user (interactive SSO login).
|
description: Enables or disables peer login expiration globally. After peer's login has expired the user has to log in (authenticate). Applies only to peers that were added by a user (interactive SSO login).
|
||||||
@ -55,6 +57,13 @@ components:
|
|||||||
required:
|
required:
|
||||||
- peer_login_expiration_enabled
|
- peer_login_expiration_enabled
|
||||||
- peer_login_expiration
|
- peer_login_expiration
|
||||||
|
AccountRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
settings:
|
||||||
|
$ref: '#/components/schemas/AccountSettings'
|
||||||
|
required:
|
||||||
|
- settings
|
||||||
User:
|
User:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -469,7 +478,7 @@ components:
|
|||||||
description: List of peers ids
|
description: List of peers ids
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
example: "ch8i4ug6lnn4g9hqv7m1"
|
example: "ch8i4ug6lnn4g9hqv7m1"
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
Group:
|
Group:
|
||||||
@ -569,10 +578,12 @@ components:
|
|||||||
enabled:
|
enabled:
|
||||||
description: Policy rule status
|
description: Policy rule status
|
||||||
type: boolean
|
type: boolean
|
||||||
|
example: true
|
||||||
action:
|
action:
|
||||||
description: Policy rule accept or drops packets
|
description: Policy rule accept or drops packets
|
||||||
type: string
|
type: string
|
||||||
enum: ["accept","drop"]
|
enum: ["accept","drop"]
|
||||||
|
example: "accept"
|
||||||
bidirectional:
|
bidirectional:
|
||||||
description: Define if the rule is applicable in both directions, sources, and destinations.
|
description: Define if the rule is applicable in both directions, sources, and destinations.
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -587,7 +598,7 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
example: [80,443]
|
example: "80"
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- enabled
|
- enabled
|
||||||
@ -604,11 +615,13 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
example: "ch8i4ug6lnn4g9hqv797"
|
||||||
destinations:
|
destinations:
|
||||||
description: Policy rule destination groups
|
description: Policy rule destination groups
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
example: "ch8i4ug6lnn4g9h7v7m0"
|
||||||
required:
|
required:
|
||||||
- sources
|
- sources
|
||||||
- destinations
|
- destinations
|
||||||
@ -636,6 +649,7 @@ components:
|
|||||||
id:
|
id:
|
||||||
description: Policy ID
|
description: Policy ID
|
||||||
type: string
|
type: string
|
||||||
|
example: ch8i4ug6lnn4g9hqv7mg
|
||||||
name:
|
name:
|
||||||
description: Policy name identifier
|
description: Policy name identifier
|
||||||
type: string
|
type: string
|
||||||
@ -651,6 +665,7 @@ components:
|
|||||||
query:
|
query:
|
||||||
description: Policy Rego query
|
description: Policy Rego query
|
||||||
type: string
|
type: string
|
||||||
|
example: "package netbird\\n\\nall[rule] {\\n is_peer_in_any_group([\\\"ch8i4ug6lnn4g9hqv7m0\\\",\\\"ch8i4ug6lnn4g9hqv7m0\\\"])\\n rule := {\\n rules_from_group(\\\"ch8i4ug6lnn4g9hqv7m0\\\", \\\"dst\\\", \\\"accept\\\", \\\"\\\"),\\n rules_from_group(\\\"ch8i4ug6lnn4g9hqv7m0\\\", \\\"src\\\", \\\"accept\\\", \\\"\\\"),\\n }[_][_]\\n}\\n"
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- description
|
- description
|
||||||
@ -932,7 +947,7 @@ security:
|
|||||||
paths:
|
paths:
|
||||||
/api/accounts:
|
/api/accounts:
|
||||||
get:
|
get:
|
||||||
summary: List all accounts
|
summary: List all Accounts
|
||||||
description: Returns a list of accounts of a user. Always returns a list of one account.
|
description: Returns a list of accounts of a user. Always returns a list of one account.
|
||||||
tags: [ Accounts ]
|
tags: [ Accounts ]
|
||||||
security:
|
security:
|
||||||
@ -957,7 +972,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/accounts/{accountId}:
|
/api/accounts/{accountId}:
|
||||||
put:
|
put:
|
||||||
summary: Update an account
|
summary: Update an Account
|
||||||
description: Update information about an account
|
description: Update information about an account
|
||||||
tags: [ Accounts ]
|
tags: [ Accounts ]
|
||||||
security:
|
security:
|
||||||
@ -975,12 +990,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
'application/json':
|
'application/json':
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/AccountRequest'
|
||||||
properties:
|
|
||||||
settings:
|
|
||||||
$ref: '#/components/schemas/AccountSettings'
|
|
||||||
required:
|
|
||||||
- settings
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: An Account object
|
description: An Account object
|
||||||
@ -998,7 +1008,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/users:
|
/api/users:
|
||||||
get:
|
get:
|
||||||
summary: List all users
|
summary: List all Users
|
||||||
description: Returns a list of all users
|
description: Returns a list of all users
|
||||||
tags: [ Users ]
|
tags: [ Users ]
|
||||||
security:
|
security:
|
||||||
@ -1028,7 +1038,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a user
|
summary: Create a User
|
||||||
description: Creates a new service user or sends an invite to a regular user
|
description: Creates a new service user or sends an invite to a regular user
|
||||||
tags: [ Users ]
|
tags: [ Users ]
|
||||||
security:
|
security:
|
||||||
@ -1057,7 +1067,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/users/{userId}:
|
/api/users/{userId}:
|
||||||
put:
|
put:
|
||||||
summary: Update a user
|
summary: Update a User
|
||||||
description: Update information about a User
|
description: Update information about a User
|
||||||
tags: [ Users ]
|
tags: [ Users ]
|
||||||
security:
|
security:
|
||||||
@ -1092,7 +1102,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a user
|
summary: Delete a User
|
||||||
description: Delete a user
|
description: Delete a user
|
||||||
tags: [ Users ]
|
tags: [ Users ]
|
||||||
security:
|
security:
|
||||||
@ -1119,7 +1129,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/users/{userId}/tokens:
|
/api/users/{userId}/tokens:
|
||||||
get:
|
get:
|
||||||
summary: List all tokens
|
summary: List all Tokens
|
||||||
description: Returns a list of all tokens for a user
|
description: Returns a list of all tokens for a user
|
||||||
tags: [ Tokens ]
|
tags: [ Tokens ]
|
||||||
security:
|
security:
|
||||||
@ -1150,7 +1160,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a token
|
summary: Create a Token
|
||||||
description: Create a new token for a user
|
description: Create a new token for a user
|
||||||
tags: [ Tokens ]
|
tags: [ Tokens ]
|
||||||
security:
|
security:
|
||||||
@ -1186,7 +1196,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/users/{userId}/tokens/{tokenId}:
|
/api/users/{userId}/tokens/{tokenId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a token
|
summary: Retrieve a Token
|
||||||
description: Returns a specific token for a user
|
description: Returns a specific token for a user
|
||||||
tags: [ Tokens ]
|
tags: [ Tokens ]
|
||||||
security:
|
security:
|
||||||
@ -1221,7 +1231,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a token
|
summary: Delete a Token
|
||||||
description: Delete a token for a user
|
description: Delete a token for a user
|
||||||
tags: [ Tokens ]
|
tags: [ Tokens ]
|
||||||
security:
|
security:
|
||||||
@ -1254,7 +1264,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/peers:
|
/api/peers:
|
||||||
get:
|
get:
|
||||||
summary: List all peers
|
summary: List all Peers
|
||||||
description: Returns a list of all peers
|
description: Returns a list of all peers
|
||||||
tags: [ Peers ]
|
tags: [ Peers ]
|
||||||
security:
|
security:
|
||||||
@ -1279,7 +1289,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/peers/{peerId}:
|
/api/peers/{peerId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a peer
|
summary: Retrieve a Peer
|
||||||
description: Get information about a peer
|
description: Get information about a peer
|
||||||
tags: [ Peers ]
|
tags: [ Peers ]
|
||||||
security:
|
security:
|
||||||
@ -1308,7 +1318,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a peer
|
summary: Update a Peer
|
||||||
description: Update information about a peer
|
description: Update information about a peer
|
||||||
tags: [ Peers ]
|
tags: [ Peers ]
|
||||||
security:
|
security:
|
||||||
@ -1343,7 +1353,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a peer
|
summary: Delete a Peer
|
||||||
description: Delete a peer
|
description: Delete a peer
|
||||||
tags: [ Peers ]
|
tags: [ Peers ]
|
||||||
security:
|
security:
|
||||||
@ -1370,7 +1380,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/setup-keys:
|
/api/setup-keys:
|
||||||
get:
|
get:
|
||||||
summary: List all setup keys
|
summary: List all Setup Keys
|
||||||
description: Returns a list of all Setup Keys
|
description: Returns a list of all Setup Keys
|
||||||
tags: [ Setup Keys ]
|
tags: [ Setup Keys ]
|
||||||
security:
|
security:
|
||||||
@ -1394,7 +1404,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a setup key
|
summary: Create a Setup Key
|
||||||
description: Creates a setup key
|
description: Creates a setup key
|
||||||
tags: [ Setup Keys ]
|
tags: [ Setup Keys ]
|
||||||
security:
|
security:
|
||||||
@ -1423,7 +1433,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/setup-keys/{keyId}:
|
/api/setup-keys/{keyId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a setup key
|
summary: Retrieve a Setup Key
|
||||||
description: Get information about a setup key
|
description: Get information about a setup key
|
||||||
tags: [ Setup Keys ]
|
tags: [ Setup Keys ]
|
||||||
security:
|
security:
|
||||||
@ -1452,7 +1462,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a setup key
|
summary: Update a Setup Key
|
||||||
description: Update information about a setup key
|
description: Update information about a setup key
|
||||||
tags: [ Setup Keys ]
|
tags: [ Setup Keys ]
|
||||||
security:
|
security:
|
||||||
@ -1488,7 +1498,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/groups:
|
/api/groups:
|
||||||
get:
|
get:
|
||||||
summary: List all groups
|
summary: List all Groups
|
||||||
description: Returns a list of all groups
|
description: Returns a list of all groups
|
||||||
tags: [ Groups ]
|
tags: [ Groups ]
|
||||||
security:
|
security:
|
||||||
@ -1512,7 +1522,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a group
|
summary: Create a Group
|
||||||
description: Creates a group
|
description: Creates a group
|
||||||
tags: [ Groups ]
|
tags: [ Groups ]
|
||||||
security:
|
security:
|
||||||
@ -1541,7 +1551,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/groups/{groupId}:
|
/api/groups/{groupId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a group
|
summary: Retrieve a Group
|
||||||
description: Get information about a group
|
description: Get information about a group
|
||||||
tags: [ Groups ]
|
tags: [ Groups ]
|
||||||
security:
|
security:
|
||||||
@ -1570,7 +1580,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a group
|
summary: Update a Group
|
||||||
description: Update/Replace a group
|
description: Update/Replace a group
|
||||||
tags: [ Groups ]
|
tags: [ Groups ]
|
||||||
security:
|
security:
|
||||||
@ -1632,7 +1642,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/rules:
|
/api/rules:
|
||||||
get:
|
get:
|
||||||
summary: List all rules
|
summary: List all Rules
|
||||||
description: Returns a list of all rules
|
description: Returns a list of all rules
|
||||||
tags: [ Rules ]
|
tags: [ Rules ]
|
||||||
security:
|
security:
|
||||||
@ -1656,7 +1666,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a rule
|
summary: Create a Rule
|
||||||
description: Creates a rule
|
description: Creates a rule
|
||||||
tags: [ Rules ]
|
tags: [ Rules ]
|
||||||
security:
|
security:
|
||||||
@ -1677,7 +1687,7 @@ paths:
|
|||||||
$ref: '#/components/schemas/Rule'
|
$ref: '#/components/schemas/Rule'
|
||||||
/api/rules/{ruleId}:
|
/api/rules/{ruleId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a rule
|
summary: Retrieve a Rule
|
||||||
description: Get information about a rules
|
description: Get information about a rules
|
||||||
tags: [ Rules ]
|
tags: [ Rules ]
|
||||||
security:
|
security:
|
||||||
@ -1706,7 +1716,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a rule
|
summary: Update a Rule
|
||||||
description: Update/Replace a rule
|
description: Update/Replace a rule
|
||||||
tags: [ Rules ]
|
tags: [ Rules ]
|
||||||
security:
|
security:
|
||||||
@ -1741,7 +1751,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a rule
|
summary: Delete a Rule
|
||||||
description: Delete a rule
|
description: Delete a rule
|
||||||
tags: [ Rules ]
|
tags: [ Rules ]
|
||||||
security:
|
security:
|
||||||
@ -1768,7 +1778,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/policies:
|
/api/policies:
|
||||||
get:
|
get:
|
||||||
summary: List all policies
|
summary: List all Policies
|
||||||
description: Returns a list of all policies
|
description: Returns a list of all policies
|
||||||
tags: [ Policies ]
|
tags: [ Policies ]
|
||||||
security:
|
security:
|
||||||
@ -1792,7 +1802,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a policy
|
summary: Create a Policy
|
||||||
description: Creates a policy
|
description: Creates a policy
|
||||||
tags: [ Policies ]
|
tags: [ Policies ]
|
||||||
security:
|
security:
|
||||||
@ -1813,7 +1823,7 @@ paths:
|
|||||||
$ref: '#/components/schemas/Policy'
|
$ref: '#/components/schemas/Policy'
|
||||||
/api/policies/{policyId}:
|
/api/policies/{policyId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a policy
|
summary: Retrieve a Policy
|
||||||
description: Get information about a Policies
|
description: Get information about a Policies
|
||||||
tags: [ Policies ]
|
tags: [ Policies ]
|
||||||
security:
|
security:
|
||||||
@ -1842,7 +1852,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a policy
|
summary: Update a Policy
|
||||||
description: Update/Replace a Policy
|
description: Update/Replace a Policy
|
||||||
tags: [ Policies ]
|
tags: [ Policies ]
|
||||||
security:
|
security:
|
||||||
@ -1904,7 +1914,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/routes:
|
/api/routes:
|
||||||
get:
|
get:
|
||||||
summary: List all routes
|
summary: List all Routes
|
||||||
description: Returns a list of all routes
|
description: Returns a list of all routes
|
||||||
tags: [ Routes ]
|
tags: [ Routes ]
|
||||||
security:
|
security:
|
||||||
@ -1928,7 +1938,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a route
|
summary: Create a Route
|
||||||
description: Creates a Route
|
description: Creates a Route
|
||||||
tags: [ Routes ]
|
tags: [ Routes ]
|
||||||
security:
|
security:
|
||||||
@ -1958,7 +1968,7 @@ paths:
|
|||||||
|
|
||||||
/api/routes/{routeId}:
|
/api/routes/{routeId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a route
|
summary: Retrieve a Route
|
||||||
description: Get information about a Routes
|
description: Get information about a Routes
|
||||||
tags: [ Routes ]
|
tags: [ Routes ]
|
||||||
security:
|
security:
|
||||||
@ -1987,7 +1997,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a route
|
summary: Update a Route
|
||||||
description: Update/Replace a Route
|
description: Update/Replace a Route
|
||||||
tags: [ Routes ]
|
tags: [ Routes ]
|
||||||
security:
|
security:
|
||||||
@ -2049,7 +2059,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/dns/nameservers:
|
/api/dns/nameservers:
|
||||||
get:
|
get:
|
||||||
summary: List all nameserver groups
|
summary: List all Nameserver Groups
|
||||||
description: Returns a list of all Nameserver Groups
|
description: Returns a list of all Nameserver Groups
|
||||||
tags: [ DNS ]
|
tags: [ DNS ]
|
||||||
security:
|
security:
|
||||||
@ -2073,7 +2083,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
post:
|
post:
|
||||||
summary: Create a nameserver group
|
summary: Create a Nameserver Group
|
||||||
description: Creates a Nameserver Group
|
description: Creates a Nameserver Group
|
||||||
tags: [ DNS ]
|
tags: [ DNS ]
|
||||||
security:
|
security:
|
||||||
@ -2103,7 +2113,7 @@ paths:
|
|||||||
|
|
||||||
/api/dns/nameservers/{nsgroupId}:
|
/api/dns/nameservers/{nsgroupId}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve a nameserver group
|
summary: Retrieve a Nameserver Group
|
||||||
description: Get information about a Nameserver Groups
|
description: Get information about a Nameserver Groups
|
||||||
tags: [ DNS ]
|
tags: [ DNS ]
|
||||||
security:
|
security:
|
||||||
@ -2132,7 +2142,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update a nameserver group
|
summary: Update a Nameserver Group
|
||||||
description: Update/Replace a Nameserver Group
|
description: Update/Replace a Nameserver Group
|
||||||
tags: [ DNS ]
|
tags: [ DNS ]
|
||||||
security:
|
security:
|
||||||
@ -2167,7 +2177,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
delete:
|
delete:
|
||||||
summary: Delete a nameserver group
|
summary: Delete a Nameserver Group
|
||||||
description: Delete a Nameserver Group
|
description: Delete a Nameserver Group
|
||||||
tags: [ DNS ]
|
tags: [ DNS ]
|
||||||
security:
|
security:
|
||||||
@ -2218,7 +2228,7 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
put:
|
put:
|
||||||
summary: Update DNS settings
|
summary: Update DNS Settings
|
||||||
description: Updates a DNS settings object
|
description: Updates a DNS settings object
|
||||||
tags: [ DNS ]
|
tags: [ DNS ]
|
||||||
security:
|
security:
|
||||||
@ -2247,7 +2257,7 @@ paths:
|
|||||||
"$ref": "#/components/responses/internal_error"
|
"$ref": "#/components/responses/internal_error"
|
||||||
/api/events:
|
/api/events:
|
||||||
get:
|
get:
|
||||||
summary: List all events
|
summary: List all Events
|
||||||
description: Returns a list of all events
|
description: Returns a list of all events
|
||||||
tags: [ Events ]
|
tags: [ Events ]
|
||||||
security:
|
security:
|
||||||
|
@ -122,6 +122,11 @@ type Account struct {
|
|||||||
Settings AccountSettings `json:"settings"`
|
Settings AccountSettings `json:"settings"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AccountRequest defines model for AccountRequest.
|
||||||
|
type AccountRequest struct {
|
||||||
|
Settings AccountSettings `json:"settings"`
|
||||||
|
}
|
||||||
|
|
||||||
// AccountSettings defines model for AccountSettings.
|
// AccountSettings defines model for AccountSettings.
|
||||||
type AccountSettings struct {
|
type AccountSettings struct {
|
||||||
// PeerLoginExpiration Period of time after which peer login expires (seconds).
|
// PeerLoginExpiration Period of time after which peer login expires (seconds).
|
||||||
@ -788,11 +793,6 @@ type UserRequest struct {
|
|||||||
Role string `json:"role"`
|
Role string `json:"role"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PutApiAccountsAccountIdJSONBody defines parameters for PutApiAccountsAccountId.
|
|
||||||
type PutApiAccountsAccountIdJSONBody struct {
|
|
||||||
Settings AccountSettings `json:"settings"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetApiUsersParams defines parameters for GetApiUsers.
|
// GetApiUsersParams defines parameters for GetApiUsers.
|
||||||
type GetApiUsersParams struct {
|
type GetApiUsersParams struct {
|
||||||
// ServiceUser Filters users and returns either regular users or service users
|
// ServiceUser Filters users and returns either regular users or service users
|
||||||
@ -800,7 +800,7 @@ type GetApiUsersParams struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PutApiAccountsAccountIdJSONRequestBody defines body for PutApiAccountsAccountId for application/json ContentType.
|
// PutApiAccountsAccountIdJSONRequestBody defines body for PutApiAccountsAccountId for application/json ContentType.
|
||||||
type PutApiAccountsAccountIdJSONRequestBody PutApiAccountsAccountIdJSONBody
|
type PutApiAccountsAccountIdJSONRequestBody = AccountRequest
|
||||||
|
|
||||||
// PostApiDnsNameserversJSONRequestBody defines body for PostApiDnsNameservers for application/json ContentType.
|
// PostApiDnsNameserversJSONRequestBody defines body for PostApiDnsNameservers for application/json ContentType.
|
||||||
type PostApiDnsNameserversJSONRequestBody = NameserverGroupRequest
|
type PostApiDnsNameserversJSONRequestBody = NameserverGroupRequest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user