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

96 lines
2.3 KiB
YAML

---
responses:
listSessions:
description: A list of sessions
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '#/definitions/listSessionsEnvelope'
detailSession:
description: A single session
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '#/definitions/detailSessionEnvelope'
definitions:
listSessionsEnvelope:
type: object
required:
- meta
- data
properties:
meta:
$ref: 'standard-responses.yml#/definitions/meta'
data:
$ref: '#/definitions/sessionList'
detailSessionEnvelope:
type: object
required:
- meta
- data
properties:
meta:
$ref: 'standard-responses.yml#/definitions/meta'
data:
$ref: '#/definitions/sessionDetail'
sessionList:
type: array
items:
$ref: '#/definitions/sessionDetail'
sessionDetail:
type: object
allOf:
- $ref: 'base-entity.yml#/definitions/baseEntity'
- type: object
required:
- type
- apiSessionId
- apiSession
- serviceId
- service
- token
- edgeRouters
- identityId
properties:
type:
$ref: 'base-entity.yml#/definitions/dialBind'
token:
type: string
apiSessionId:
type: string
apiSession:
$ref: 'base-entity.yml#/definitions/entityRef'
serviceId:
type: string
service:
$ref: 'base-entity.yml#/definitions/entityRef'
edgeRouters:
type: array
items:
$ref: '#/definitions/sessionEdgeRouter'
identityId:
type: string
sessionEdgeRouter:
allOf:
- $ref: "edge-routers.yml#/definitions/commonEdgeRouterProperties"
- type: object
required:
- urls
properties:
# deprecated property, see supportedProtocols in commonEdgeRouterProperties
urls:
type: object
additionalProperties:
type: string