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
138 lines
4.3 KiB
YAML
138 lines
4.3 KiB
YAML
---
|
|
paths:
|
|
database-snapshot:
|
|
post:
|
|
summary: Create a new database snapshot
|
|
description: Create a new database snapshot. Requires admin access.
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Database
|
|
operationId: createDatabaseSnapshot
|
|
responses:
|
|
'200':
|
|
$ref: '../shared/standard-responses.yml#/responses/emptyResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
database-check-data-integrity:
|
|
post:
|
|
summary: Starts a data integrity scan on the datastore
|
|
description: Starts a data integrity scan on the datastore. Requires admin access. Only once instance may run at a time, including runs of fixDataIntegrity.
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Database
|
|
operationId: checkDataIntegrity
|
|
responses:
|
|
'202':
|
|
$ref: '../shared/standard-responses.yml#/responses/emptyResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
database-fix-data-integrity:
|
|
post:
|
|
summary: Runs a data integrity scan on the datastore, attempts to fix any issues it can and returns any found issues
|
|
description: Runs a data integrity scan on the datastore, attempts to fix any issues it can, and returns any found issues. Requires admin access. Only once instance may run at a time, including runs of checkDataIntegrity.
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Database
|
|
operationId: fixDataIntegrity
|
|
responses:
|
|
'202':
|
|
$ref: '../shared/standard-responses.yml#/responses/emptyResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
|
|
database-data-integrity-results:
|
|
get:
|
|
summary: Returns any results found from in-progress integrity checks
|
|
description: Returns any results found from in-progress integrity checks. Requires admin access.
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Database
|
|
operationId: dataIntegrityResults
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/dataIntegrityCheckResult'
|
|
'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:
|
|
dataIntegrityCheckResult:
|
|
description: A list of data integrity issues found
|
|
headers:
|
|
WWW-Authenticate:
|
|
description: "Denotes different type of security token related information"
|
|
type: array
|
|
items:
|
|
type: string
|
|
schema:
|
|
$ref: '#/definitions/dataIntegrityCheckResultEnvelope'
|
|
|
|
definitions:
|
|
dataIntegrityCheckResultEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: '../shared/standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: '#/definitions/dataIntegrityCheckDetails'
|
|
dataIntegrityCheckDetails:
|
|
type: object
|
|
required:
|
|
- inProgress
|
|
- fixingErrors
|
|
- tooManyErrors
|
|
- startTime
|
|
- endTime
|
|
- error
|
|
- results
|
|
properties:
|
|
inProgress:
|
|
type: boolean
|
|
startTime:
|
|
type: string
|
|
format: date-time
|
|
endTime:
|
|
type: string
|
|
format: date-time
|
|
fixingErrors:
|
|
type: boolean
|
|
error:
|
|
type: string
|
|
tooManyErrors:
|
|
type: boolean
|
|
results:
|
|
$ref: '#/definitions/dataIntegrityCheckDetailList'
|
|
dataIntegrityCheckDetailList:
|
|
type: array
|
|
items:
|
|
$ref: '#/definitions/dataIntegrityCheckDetail'
|
|
dataIntegrityCheckDetail:
|
|
type: object
|
|
required:
|
|
- description
|
|
- fixed
|
|
properties:
|
|
description:
|
|
type: string
|
|
fixed:
|
|
type: boolean |