|
@@ -1,3 +1,4 @@
|
|
|
|
+---
|
|
openapi: 3.0.1
|
|
openapi: 3.0.1
|
|
servers:
|
|
servers:
|
|
- url: https://api.demo.netmaker.io
|
|
- url: https://api.demo.netmaker.io
|
|
@@ -941,6 +942,18 @@ paths:
|
|
summary: check for superadmin
|
|
summary: check for superadmin
|
|
tags:
|
|
tags:
|
|
- admin
|
|
- admin
|
|
|
|
+ /api/users/adm/createsuperadmin:
|
|
|
|
+ post:
|
|
|
|
+ operationId: createSuperAdmin
|
|
|
|
+ requestBody:
|
|
|
|
+ $ref: '#/components/requestBodies/user'
|
|
|
|
+ responses:
|
|
|
|
+ '200':
|
|
|
|
+ $ref: '#/components/responses/returnedUser'
|
|
|
|
+ summary: create superadmin
|
|
|
|
+ tags:
|
|
|
|
+ - admin
|
|
|
|
+
|
|
components:
|
|
components:
|
|
securitySchemes:
|
|
securitySchemes:
|
|
bearerAuth:
|
|
bearerAuth:
|
|
@@ -1638,6 +1651,23 @@ components:
|
|
application/json:
|
|
application/json:
|
|
schema:
|
|
schema:
|
|
$ref: '#/components/schemas/signal'
|
|
$ref: '#/components/schemas/signal'
|
|
|
|
+ returnedUser:
|
|
|
|
+ description: user resonse
|
|
|
|
+ content:
|
|
|
|
+ application/json:
|
|
|
|
+ schema:
|
|
|
|
+ type: object
|
|
|
|
+ properties:
|
|
|
|
+ Username:
|
|
|
|
+ type: string
|
|
|
|
+ IsSuperAdmin:
|
|
|
|
+ type: boolean
|
|
|
|
+ IsAdmin:
|
|
|
|
+ type: boolean
|
|
|
|
+ RemoteGWIDs:
|
|
|
|
+ type: array
|
|
|
|
+ items:
|
|
|
|
+ type: string
|
|
userGroup:
|
|
userGroup:
|
|
description: User Group
|
|
description: User Group
|
|
content:
|
|
content:
|
|
@@ -1726,7 +1756,7 @@ components:
|
|
type: string
|
|
type: string
|
|
Password:
|
|
Password:
|
|
type: string
|
|
type: string
|
|
- userGroup:
|
|
|
|
|
|
+ user:
|
|
content:
|
|
content:
|
|
application/json:
|
|
application/json:
|
|
schema:
|
|
schema:
|