Files
ziti/specs/source/management/api-sessions.yml
T
Andrew Martinez b562fb5c07 splits API specs into composible modules
- splits Open API 2.0 (swagger) into client/management APIs
- uses go-swaggers flatten capabilities
- uses newer version of go-swagger (v0.27.0)
- introduces /edge/client/v1, /edge/management/v1
- non-prefixed URLs default to /edge/client/v1
- splits some shared management/client API handlers
- renames some REST models to "client" instead of "limited"
- passes all apitests, fails dataflow upd test (main fails this as well)
- updates generate rest script for powershell
- todo: test generate rest script for bash
- todo: use xweb (different branch)
2021-05-04 11:30:32 -04:00

67 lines
2.1 KiB
YAML

---
paths:
api-sessions:
get:
summary: List active API sessions
description: |
Returns a list of active API sessions. The resources can be sorted, filtered, and paginated. This endpoint
requries admin access.
security:
- ztSession: [ ]
tags:
- API Session
operationId: listAPISessions
produces:
- application/json; charset=utf-8
parameters:
- $ref: '../shared/parameters.yml#/limit'
- $ref: '../shared/parameters.yml#/offset'
- $ref: '../shared/parameters.yml#/filter'
responses:
'200':
$ref: '#/responses/listAPISessions'
api-sessions-id:
parameters:
- $ref: '../shared/parameters.yml#/id'
get:
summary: Retrieves a single API Session
description: Retrieves a single API Session by id. Requires admin access.
security:
- ztSession: [ ]
tags:
- API Session
operationId: detailAPISessions
responses:
'200':
$ref: '#/responses/detailAPISession'
'404':
$ref: '../shared/standard-responses.yml#/responses/notFoundResponse'
'401':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
delete:
summary: Deletes an API Sessions
description: Deletes and API sesion by id. Requires admin access.
security:
- ztSession: [ ]
tags:
- API Session
operationId: deleteAPISessions
responses:
'200':
$ref: '../shared/standard-responses.yml#/responses/deleteResponse'
'404':
$ref: '../shared/standard-responses.yml#/responses/notFoundResponse'
'403':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
responses:
listAPISessions:
description: A list of active API Sessions
schema:
$ref: '../shared/api-sessions.yml#/definitions/listAPISessionsEnvelope'
detailAPISession:
description: Retrieves a singular API Session by id
schema:
$ref: '../shared/api-sessions.yml#/definitions/detailApiSessionEnvelope'