Files
team/api/v4/source/service_terms.yaml
T
zeekayandHanzo Dev 404de134f3 Point the API spec and its route checker at the new base
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]>
2026-08-14 10:58:08 -07:00

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"