|
@@ -67,12 +67,12 @@ paths:
|
|
summary: Create a DNS entry.
|
|
summary: Create a DNS entry.
|
|
tags:
|
|
tags:
|
|
- dns
|
|
- dns
|
|
- /api/dns/{network}/{hostID}:
|
|
|
|
|
|
+ /api/dns/{network}/{domain}:
|
|
delete:
|
|
delete:
|
|
operationId: deleteDNS
|
|
operationId: deleteDNS
|
|
parameters:
|
|
parameters:
|
|
- $ref: '#/components/parameters/networkName'
|
|
- $ref: '#/components/parameters/networkName'
|
|
- - $ref: '#/components/parameters/hostID'
|
|
|
|
|
|
+ - $ref: '#/components/parameters/domain'
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
description: "deletion successful"
|
|
description: "deletion successful"
|
|
@@ -176,7 +176,7 @@ paths:
|
|
content:
|
|
content:
|
|
application/json:
|
|
application/json:
|
|
schema:
|
|
schema:
|
|
- $ref: '#components/responses/ErrorResponse'
|
|
|
|
|
|
+ $ref: '#/components/responses/errorResponse'
|
|
example:
|
|
example:
|
|
{
|
|
{
|
|
"Code": 500,
|
|
"Code": 500,
|
|
@@ -507,18 +507,19 @@ paths:
|
|
operationId: createNetwork
|
|
operationId: createNetwork
|
|
requestBody:
|
|
requestBody:
|
|
$ref: '#/components/requestBodies/network'
|
|
$ref: '#/components/requestBodies/network'
|
|
- required: true
|
|
|
|
|
|
+ #required: true
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
$ref: '#/components/responses/network'
|
|
$ref: '#/components/responses/network'
|
|
summary: Create a network.
|
|
summary: Create a network.
|
|
tags:
|
|
tags:
|
|
- networks
|
|
- networks
|
|
- /api/networks/{networkname}:
|
|
|
|
|
|
+ /api/networks/{network}:
|
|
delete:
|
|
delete:
|
|
operationId: deleteNetwork
|
|
operationId: deleteNetwork
|
|
parameters:
|
|
parameters:
|
|
- $ref: '#/components/parameters/networkName'
|
|
- $ref: '#/components/parameters/networkName'
|
|
|
|
+ in: path
|
|
responses:
|
|
responses:
|
|
"200":
|
|
"200":
|
|
$ref: '#/components/responses/successResponse'
|
|
$ref: '#/components/responses/successResponse'
|
|
@@ -547,7 +548,7 @@ paths:
|
|
summary: Update a network.
|
|
summary: Update a network.
|
|
tags:
|
|
tags:
|
|
- networks
|
|
- networks
|
|
- /api/networks/{networkname}/acls:
|
|
|
|
|
|
+ /api/networks/{network}/acls:
|
|
get:
|
|
get:
|
|
operationId: getNetworkACLs
|
|
operationId: getNetworkACLs
|
|
parameters:
|
|
parameters:
|
|
@@ -676,7 +677,7 @@ paths:
|
|
- $ref: '#/components/parameters/networkName'
|
|
- $ref: '#/components/parameters/networkName'
|
|
- $ref: '#/components/parameters/nodeID'
|
|
- $ref: '#/components/parameters/nodeID'
|
|
requestBody:
|
|
requestBody:
|
|
- $ref: '#components/requestBodies/egressGatewayRequest'
|
|
|
|
|
|
+ $ref: '#/components/requestBodies/egressGatewayRequest'
|
|
description: Egress Gateway Request
|
|
description: Egress Gateway Request
|
|
required: true
|
|
required: true
|
|
content:
|
|
content:
|
|
@@ -883,7 +884,7 @@ paths:
|
|
- networkusers (Pro Feature)
|
|
- networkusers (Pro Feature)
|
|
/api/networkusers/data/{username}/me:
|
|
/api/networkusers/data/{username}/me:
|
|
delete:
|
|
delete:
|
|
- operationId: deleteNetworkUser
|
|
|
|
|
|
+ operationId: deleteCurrentUser
|
|
parameters:
|
|
parameters:
|
|
- $ref: '#/components/parameters/username'
|
|
- $ref: '#/components/parameters/username'
|
|
responses:
|
|
responses:
|
|
@@ -936,42 +937,24 @@ paths:
|
|
summary: Get all user groups.
|
|
summary: Get all user groups.
|
|
tags:
|
|
tags:
|
|
- usergroups (Pro Feature)
|
|
- usergroups (Pro Feature)
|
|
- /api/usergroups/{usergroup}:
|
|
|
|
- post:
|
|
|
|
- operationId: createUserGroup
|
|
|
|
- parameters:
|
|
|
|
- - description: User Group
|
|
|
|
- in: path
|
|
|
|
- name: usergroup
|
|
|
|
- required: true
|
|
|
|
- schema:
|
|
|
|
- type: string
|
|
|
|
- requestBody:
|
|
|
|
- $ref: '#/components/responses/userGroup'
|
|
|
|
- responses:
|
|
|
|
- "200":
|
|
|
|
- description: "usergroups"
|
|
|
|
- $ref: '#/components/responses/userGroup'
|
|
|
|
- summary: Create a user group.
|
|
|
|
- tags:
|
|
|
|
- - usergroups (Pro Feature)
|
|
|
|
- delete:
|
|
|
|
- operationId: deleteUserGroup
|
|
|
|
- parameters:
|
|
|
|
- - description: User Group
|
|
|
|
- in: path
|
|
|
|
- name: usergroup
|
|
|
|
- required: true
|
|
|
|
- schema:
|
|
|
|
- type: string
|
|
|
|
- responses:
|
|
|
|
- "200":
|
|
|
|
- description: "usergroups"
|
|
|
|
- $ref: '#/components/responses/successResponse'
|
|
|
|
- summary: Delete a user group.
|
|
|
|
- tags:
|
|
|
|
- - usergroups (Pro Feature)
|
|
|
|
-
|
|
|
|
|
|
+ #/api/users/adm/hassuperadmin:
|
|
|
|
+ # get:
|
|
|
|
+ # responses:
|
|
|
|
+ # "200":
|
|
|
|
+ # description: "admin exists"
|
|
|
|
+ # content:
|
|
|
|
+ # application/json:
|
|
|
|
+ # schema:
|
|
|
|
+ # type: boolean
|
|
|
|
+ # examples:
|
|
|
|
+ # exists:
|
|
|
|
+ # {
|
|
|
|
+ # true
|
|
|
|
+ # }
|
|
|
|
+ # does-not:
|
|
|
|
+ # {
|
|
|
|
+ # false
|
|
|
|
+ # }
|
|
components:
|
|
components:
|
|
securitySchemes:
|
|
securitySchemes:
|
|
bearerAuth:
|
|
bearerAuth:
|
|
@@ -1025,6 +1008,19 @@ components:
|
|
type: string
|
|
type: string
|
|
Address6:
|
|
Address6:
|
|
type: string
|
|
type: string
|
|
|
|
+ egressGatewayRequest:
|
|
|
|
+ type: object
|
|
|
|
+ properties:
|
|
|
|
+ NodeID:
|
|
|
|
+ type: string
|
|
|
|
+ NetID:
|
|
|
|
+ type: string
|
|
|
|
+ NatEnabled:
|
|
|
|
+ type: boolean
|
|
|
|
+ Ranges:
|
|
|
|
+ type: array
|
|
|
|
+ items:
|
|
|
|
+ type: string
|
|
enrollmentKey:
|
|
enrollmentKey:
|
|
type: object
|
|
type: object
|
|
properties:
|
|
properties:
|
|
@@ -1193,8 +1189,8 @@ components:
|
|
type: array
|
|
type: array
|
|
items:
|
|
items:
|
|
type: string
|
|
type: string
|
|
- NetworkSetttings:
|
|
|
|
- $ref: '#/components/responses/network'
|
|
|
|
|
|
+ NetworkSettings:
|
|
|
|
+ $ref: '#/components/schemas/network'
|
|
ListenPort:
|
|
ListenPort:
|
|
type: integer
|
|
type: integer
|
|
LocalListenPort:
|
|
LocalListenPort:
|
|
@@ -1438,9 +1434,15 @@ components:
|
|
type: string
|
|
type: string
|
|
Timestamp:
|
|
Timestamp:
|
|
type: integer
|
|
type: integer
|
|
-
|
|
|
|
|
|
|
|
parameters:
|
|
parameters:
|
|
|
|
+ domain:
|
|
|
|
+ description: dns domain
|
|
|
|
+ in: path
|
|
|
|
+ name: domain
|
|
|
|
+ required: true
|
|
|
|
+ schema:
|
|
|
|
+ type: string
|
|
extclientID:
|
|
extclientID:
|
|
description: Client ID
|
|
description: Client ID
|
|
in: path
|
|
in: path
|
|
@@ -1595,7 +1597,7 @@ components:
|
|
content:
|
|
content:
|
|
application/json:
|
|
application/json:
|
|
schema:
|
|
schema:
|
|
- $ref: '#components/schemas/network'
|
|
|
|
|
|
+ $ref: '#/components/schemas/network'
|
|
networks:
|
|
networks:
|
|
description: "Networks"
|
|
description: "Networks"
|
|
content:
|
|
content:
|
|
@@ -1669,6 +1671,11 @@ components:
|
|
$ref: '#/components/schemas/customExtClient'
|
|
$ref: '#/components/schemas/customExtClient'
|
|
description: ExtClient
|
|
description: ExtClient
|
|
required: true
|
|
required: true
|
|
|
|
+ egressGatewayRequest:
|
|
|
|
+ content:
|
|
|
|
+ application/json:
|
|
|
|
+ schema:
|
|
|
|
+ $ref: '#/components/schemas/egressGatewayRequest'
|
|
enrollmentKey:
|
|
enrollmentKey:
|
|
content:
|
|
content:
|
|
application/json:
|
|
application/json:
|
|
@@ -1729,6 +1736,16 @@ components:
|
|
schema:
|
|
schema:
|
|
$ref: '#/components/schemas/signal'
|
|
$ref: '#/components/schemas/signal'
|
|
userAuth:
|
|
userAuth:
|
|
|
|
+ content:
|
|
|
|
+ application/json:
|
|
|
|
+ schema:
|
|
|
|
+ type: object
|
|
|
|
+ properties:
|
|
|
|
+ Username:
|
|
|
|
+ type: string
|
|
|
|
+ Password:
|
|
|
|
+ type: string
|
|
|
|
+ userGroup:
|
|
content:
|
|
content:
|
|
application/json:
|
|
application/json:
|
|
schema:
|
|
schema:
|