Files
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

56 lines
1.4 KiB
YAML

"/v1/team/imports":
get:
tags:
- imports
summary: List import files
description: >
Lists all available import files.
__Minimum server version__: 5.31
##### Permissions
Must have `manage_system` permissions.
operationId: ListImports
responses:
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
"/v1/team/imports/{import_name}":
delete:
tags:
- imports
summary: Delete an import file
description: |
Deletes an import file.
__Minimum server version__: 5.31
##### Permissions
Must have `manage_system` permissions.
operationId: DeleteImport
parameters:
- name: import_name
in: path
description: The name of the import file to delete
required: true
schema:
type: string
responses:
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"500":
$ref: "#/components/responses/InternalServerError"