mirror of
https://github.com/openziti/zrok.git
synced 2025-08-10 00:17:46 +02:00
initial cut at admin api operations (#537)
This commit is contained in:
121
specs/zrok.yml
121
specs/zrok.yml
@ -381,6 +381,127 @@ paths:
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
|
||||
/organization:
|
||||
post:
|
||||
tags:
|
||||
- admin
|
||||
security:
|
||||
- key: []
|
||||
operationId: createOrganization
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
responses:
|
||||
201:
|
||||
description: organization created
|
||||
schema:
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
401:
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
delete:
|
||||
tags:
|
||||
- admin
|
||||
security:
|
||||
- key: []
|
||||
operationId: deleteOrganization
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: organization deleted
|
||||
401:
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
|
||||
/organization/add:
|
||||
post:
|
||||
tags:
|
||||
- admin
|
||||
security:
|
||||
- key: []
|
||||
operationId: addOrganizationMember
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
responses:
|
||||
201:
|
||||
description: member added
|
||||
401:
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
|
||||
/organization/members:
|
||||
post:
|
||||
tags:
|
||||
- admin
|
||||
security:
|
||||
- key: []
|
||||
operationId: listOrganizationMembers
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
properties:
|
||||
token:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: list organization members
|
||||
schema:
|
||||
properties:
|
||||
members:
|
||||
type: array
|
||||
items:
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
401:
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
|
||||
/organization/remove:
|
||||
post:
|
||||
tags:
|
||||
- admin
|
||||
security:
|
||||
- key: []
|
||||
operationId: removeOrganizationMember
|
||||
parameters:
|
||||
- name: body
|
||||
in: body
|
||||
schema:
|
||||
properties:
|
||||
email:
|
||||
type: string
|
||||
responses:
|
||||
200:
|
||||
description: member removed
|
||||
401:
|
||||
description: unauthorized
|
||||
500:
|
||||
description: internal server error
|
||||
|
||||
#
|
||||
# environment
|
||||
#
|
||||
|
Reference in New Issue
Block a user