Files
Andrew MartinezandGitHub 2a12985526 Fix.openziti.ziti.3356.www.authenticate.headers (#169)
* for openziti/ziti#3356 add www-authenticate headers

- adds www-authenticate headers to all responses
- moves to swagger 0.33.1
- updates readme
- updates version checking in powershell and bash
2026-02-12 13:41:23 -05:00

98 lines
3.4 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
requires admin access.
security:
- ztSession: [ ]
- oauth2: [ openid ]
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'
'401':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
'400':
$ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
'429':
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
'503':
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
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: [ ]
- oauth2: [ openid ]
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'
'429':
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
'503':
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
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'
'401':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
'404':
$ref: '../shared/standard-responses.yml#/responses/notFoundResponse'
'403':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
'429':
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
'503':
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
responses:
listAPISessions:
description: A list of active API Sessions
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '../shared/api-sessions.yml#/definitions/listAPISessionsEnvelope'
detailAPISession:
description: Retrieves a singular API Session by id
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '../shared/api-sessions.yml#/definitions/detailApiSessionEnvelope'