tunnel -> service; tunnel.Tunnel -> service.Share; tunnel.Untunnel -> service.Unshare (#102)

This commit is contained in:
Michael Quigley
2022-11-18 15:36:55 -05:00
parent 70c99b9791
commit 11068394b8
33 changed files with 1338 additions and 1320 deletions

View File

@@ -177,52 +177,50 @@ paths:
schema:
$ref: "#/definitions/version"
#
# tunnel
# service
#
/tunnel:
/share:
post:
tags:
- tunnel
- service
security:
- key: []
operationId: tunnel
operationId: share
parameters:
- name: body
in: body
schema:
$ref: "#/definitions/tunnelRequest"
$ref: "#/definitions/shareRequest"
responses:
201:
description: tunnel created
description: service created
schema:
$ref: "#/definitions/tunnelResponse"
$ref: "#/definitions/shareResponse"
401:
description: invalid environment identity
schema:
$ref: "#/definitions/errorMessage"
description: unauthorized
500:
description: internal server error
schema:
$ref: "#/definitions/errorMessage"
/untunnel:
/unshare:
delete:
tags:
- tunnel
- service
security:
- key: []
operationId: untunnel
operationId: unshare
parameters:
- name: body
in: body
schema:
$ref: "#/definitions/untunnelRequest"
$ref: "#/definitions/unshareRequest"
responses:
200:
description: tunnel removed
description: service removed
401:
description: unauthorized
404:
description: not found
schema:
$ref: "#/definitions/errorMessage"
500:
description: internal server error
schema:
@@ -361,7 +359,7 @@ definitions:
items:
type: integer
tunnelRequest:
shareRequest:
type: object
properties:
zId:
@@ -374,7 +372,7 @@ definitions:
type: array
items:
$ref: "#/definitions/authUser"
tunnelResponse:
shareResponse:
type: object
properties:
proxyEndpoint:
@@ -382,7 +380,7 @@ definitions:
svcName:
type: string
untunnelRequest:
unshareRequest:
type: object
properties:
zId: