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]>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
/v1/team/terms_of_service:
|
|
get:
|
|
tags:
|
|
- terms of service
|
|
summary: Get latest terms of service
|
|
description: |
|
|
Get latest terms of service from the server
|
|
|
|
__Minimum server version__: 5.4
|
|
##### Permissions
|
|
Must be authenticated.
|
|
operationId: GetTermsOfService
|
|
responses:
|
|
"200":
|
|
description: Terms of service fetched successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/TermsOfService"
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
post:
|
|
tags:
|
|
- terms of service
|
|
summary: Creates a new terms of service
|
|
description: |
|
|
Creates new terms of service
|
|
|
|
__Minimum server version__: 5.4
|
|
##### Permissions
|
|
Must have `manage_system` permission.
|
|
operationId: CreateTermsOfService
|
|
responses:
|
|
"200":
|
|
description: terms of service fetched successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/TermsOfService"
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|