initial access/unaccess api (#111)

This commit is contained in:
Michael Quigley
2022-11-23 12:12:11 -05:00
parent 4ec0004285
commit f47d97d103
20 changed files with 1939 additions and 0 deletions

View File

@@ -179,6 +179,48 @@ paths:
#
# service
#
/access:
post:
tags:
- service
security:
- key: []
operationId: access
parameters:
- name: body
in: body
schema:
$ref: "#/definitions/accessRequest"
responses:
201:
description: access created
401:
description: unauthorized
500:
description: internal server error
/unaccess:
delete:
tags:
- service
security:
- key: []
operationId: unaccess
parameters:
- name: body
in: body
schema:
$ref: "#/definitions/unaccessRequest"
responses:
200:
description: access removed
401:
description: unauthorized
404:
description: not found
500:
description: internal server error
/share:
post:
tags:
@@ -202,6 +244,7 @@ paths:
description: internal server error
schema:
$ref: "#/definitions/errorMessage"
/unshare:
delete:
tags:
@@ -227,6 +270,14 @@ paths:
$ref: "#/definitions/errorMessage"
definitions:
accessRequest:
type: object
properties:
zId:
type: string
svcName:
type: string
accountRequest:
type: object
properties:
@@ -390,6 +441,14 @@ definitions:
svcName:
type: string
unaccessRequest:
type: object
properties:
zId:
type: string
svcName:
type: string
unshareRequest:
type: object
properties: