Skip to content

Commit

Permalink
superadmin creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun committed Sep 18, 2023
1 parent 18db419 commit b72c42b
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion swagger.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
openapi: 3.0.1
servers:
- url: https://api.demo.netmaker.io
Expand Down Expand Up @@ -941,6 +942,18 @@ paths:
summary: check for superadmin
tags:
- 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:
securitySchemes:
bearerAuth:
Expand Down Expand Up @@ -1638,6 +1651,23 @@ components:
application/json:
schema:
$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:
description: User Group
content:
Expand Down Expand Up @@ -1726,7 +1756,7 @@ components:
type: string
Password:
type: string
userGroup:
user:
content:
application/json:
schema:
Expand Down

0 comments on commit b72c42b

Please sign in to comment.