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

@ -35,6 +35,39 @@ func init() {
},
"basePath": "/api/v1",
"paths": {
"/access": {
"post": {
"security": [
{
"key": []
}
],
"tags": [
"service"
],
"operationId": "access",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/accessRequest"
}
}
],
"responses": {
"201": {
"description": "access created"
},
"401": {
"description": "unauthorized"
},
"500": {
"description": "internal server error"
}
}
}
},
"/account": {
"post": {
"tags": [
@ -275,6 +308,42 @@ func init() {
}
}
},
"/unaccess": {
"delete": {
"security": [
{
"key": []
}
],
"tags": [
"service"
],
"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"
}
}
}
},
"/unshare": {
"delete": {
"security": [
@ -366,6 +435,17 @@ func init() {
}
},
"definitions": {
"accessRequest": {
"type": "object",
"properties": {
"svcName": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"accountRequest": {
"type": "object",
"properties": {
@ -604,6 +684,17 @@ func init() {
}
}
},
"unaccessRequest": {
"type": "object",
"properties": {
"svcName": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"unshareRequest": {
"type": "object",
"properties": {
@ -661,6 +752,39 @@ func init() {
},
"basePath": "/api/v1",
"paths": {
"/access": {
"post": {
"security": [
{
"key": []
}
],
"tags": [
"service"
],
"operationId": "access",
"parameters": [
{
"name": "body",
"in": "body",
"schema": {
"$ref": "#/definitions/accessRequest"
}
}
],
"responses": {
"201": {
"description": "access created"
},
"401": {
"description": "unauthorized"
},
"500": {
"description": "internal server error"
}
}
}
},
"/account": {
"post": {
"tags": [
@ -901,6 +1025,42 @@ func init() {
}
}
},
"/unaccess": {
"delete": {
"security": [
{
"key": []
}
],
"tags": [
"service"
],
"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"
}
}
}
},
"/unshare": {
"delete": {
"security": [
@ -992,6 +1152,17 @@ func init() {
}
},
"definitions": {
"accessRequest": {
"type": "object",
"properties": {
"svcName": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"accountRequest": {
"type": "object",
"properties": {
@ -1230,6 +1401,17 @@ func init() {
}
}
},
"unaccessRequest": {
"type": "object",
"properties": {
"svcName": {
"type": "string"
},
"zId": {
"type": "string"
}
}
},
"unshareRequest": {
"type": "object",
"properties": {