mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
The OpenAPI document keys every operation by its full path, so the spec described endpoints that no longer exist the moment the server moved. The openApiSync analyzer cross-checks each registered subrouter against that document and reconstructs the prefix from a literal of its own, so spec and analyzer have to move together or every route reports as missing. Its special case for the v5 root goes away with the root itself. The api/v4 directory keeps its name: it is where the spec sources live, not a URL anyone requests. Co-authored-by: Hanzo Dev <[email protected]>
69 lines
2.0 KiB
YAML
69 lines
2.0 KiB
YAML
/v1/team/audit_logs/certificate:
|
|
post:
|
|
tags:
|
|
- audit_logs
|
|
summary: Upload audit log certificate
|
|
description: |
|
|
Upload the certificate to be used for TLS verification with the audit log service.
|
|
|
|
##### Permissions
|
|
Must have `sysconsole_write_experimental_features` permission.
|
|
|
|
__Minimum server version__: 10.9
|
|
operationId: AddAuditLogCertificate
|
|
requestBody:
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
certificate:
|
|
description: The certificate file
|
|
type: string
|
|
format: binary
|
|
required:
|
|
- certificate
|
|
responses:
|
|
"200":
|
|
description: Certificate upload successful
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/StatusOK"
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"403":
|
|
$ref: "#/components/responses/Forbidden"
|
|
"413":
|
|
$ref: "#/components/responses/TooLarge"
|
|
"501":
|
|
$ref: "#/components/responses/NotImplemented"
|
|
|
|
delete:
|
|
tags:
|
|
- audit_logs
|
|
summary: Remove audit log certificate
|
|
description: |
|
|
Delete the current certificate being used with the audit log service.
|
|
|
|
##### Permissions
|
|
Must have `sysconsole_write_experimental_features` permission.
|
|
|
|
__Minimum server version__: 9.5
|
|
operationId: RemoveAuditLogCertificate
|
|
responses:
|
|
"200":
|
|
description: Certificate deletion successful
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/StatusOK"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"403":
|
|
$ref: "#/components/responses/Forbidden"
|
|
"501":
|
|
$ref: "#/components/responses/NotImplemented"
|