mirror of
https://github.com/hanzozt/edge-api.git
synced 2026-10-30 14:44:05 +00:00
* 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
119 lines
3.5 KiB
YAML
119 lines
3.5 KiB
YAML
---
|
|
paths:
|
|
posture-check-types:
|
|
get:
|
|
summary: List a subset of posture check types
|
|
description: |
|
|
Retrieves a list of posture check types
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Posture Checks
|
|
operationId: listPostureCheckTypes
|
|
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/listPostureCheckTypes'
|
|
'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'
|
|
|
|
posture-check-types-id:
|
|
parameters:
|
|
- $ref: '../shared/parameters.yml#/id'
|
|
get:
|
|
summary: Retrieves a single posture check type
|
|
description: Retrieves a single posture check type by id
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Posture Checks
|
|
operationId: detailPostureCheckType
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/detailPostureCheckType'
|
|
'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'
|
|
|
|
responses:
|
|
listPostureCheckTypes:
|
|
description: A list of posture check types
|
|
headers:
|
|
WWW-Authenticate:
|
|
description: "Denotes different type of security token related information"
|
|
type: array
|
|
items:
|
|
type: string
|
|
schema:
|
|
$ref: '#/definitions/listPostureCheckTypesEnvelope'
|
|
detailPostureCheckType:
|
|
description: Retrieves a singular posture check type by id
|
|
headers:
|
|
WWW-Authenticate:
|
|
description: "Denotes different type of security token related information"
|
|
type: array
|
|
items:
|
|
type: string
|
|
schema:
|
|
$ref: '#/definitions/detailPostureCheckTypeEnvelope'
|
|
|
|
definitions:
|
|
listPostureCheckTypesEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: '../shared/standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: '#/definitions/postureCheckTypeList'
|
|
detailPostureCheckTypeEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: '../shared/standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: '#/definitions/postureCheckTypeDetail'
|
|
postureCheckTypeList:
|
|
type: array
|
|
items:
|
|
$ref: '#/definitions/postureCheckTypeDetail'
|
|
postureCheckTypeDetail:
|
|
allOf:
|
|
- $ref: '../shared/base-entity.yml#/definitions/baseEntity'
|
|
- type: object
|
|
required:
|
|
- name
|
|
- operatingSystems
|
|
- version
|
|
properties:
|
|
name:
|
|
type: string
|
|
operatingSystems:
|
|
type: array
|
|
items:
|
|
$ref: 'posture-checks.yml#/definitions/operatingSystem'
|
|
version:
|
|
type: string |