mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* api: remove PHP code samples * api: remove Curl code samples * api: remove Go code samples * link out to marketplace exclusively for community-built drivers * absolute path to V4_SRC * programmatically extract x-codeSamples * initial batch of examples * Update api/server/main.go Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> * Update api/server/main.go Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> * Update api/server/main.go Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com> * updated examples --------- Co-authored-by: Alejandro García Montoro <alejandro.garciamontoro@gmail.com>
87 lines
2.2 KiB
YAML
87 lines
2.2 KiB
YAML
"/api/v4/exports":
|
|
get:
|
|
tags:
|
|
- exports
|
|
summary: List export files
|
|
description: >
|
|
Lists all available export files.
|
|
|
|
__Minimum server version__: 5.33
|
|
|
|
##### Permissions
|
|
|
|
Must have `manage_system` permissions.
|
|
operationId: ListExports
|
|
responses:
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"403":
|
|
$ref: "#/components/responses/Forbidden"
|
|
"500":
|
|
$ref: "#/components/responses/InternalServerError"
|
|
"/api/v4/exports/{export_name}":
|
|
get:
|
|
tags:
|
|
- exports
|
|
summary: Download an export file
|
|
description: |
|
|
Downloads an export file.
|
|
|
|
|
|
__Minimum server version__: 5.33
|
|
|
|
##### Permissions
|
|
|
|
Must have `manage_system` permissions.
|
|
operationId: DownloadExport
|
|
parameters:
|
|
- name: export_name
|
|
in: path
|
|
description: The name of the export file to download
|
|
required: true
|
|
schema:
|
|
type: string
|
|
responses:
|
|
"400":
|
|
$ref: "#/components/responses/BadRequest"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"403":
|
|
$ref: "#/components/responses/Forbidden"
|
|
"404":
|
|
$ref: "#/components/responses/NotFound"
|
|
"500":
|
|
$ref: "#/components/responses/InternalServerError"
|
|
delete:
|
|
tags:
|
|
- exports
|
|
summary: Delete an export file
|
|
description: |
|
|
Deletes an export file.
|
|
|
|
|
|
__Minimum server version__: 5.33
|
|
|
|
##### Permissions
|
|
|
|
Must have `manage_system` permissions.
|
|
operationId: DeleteExport
|
|
parameters:
|
|
- name: export_name
|
|
in: path
|
|
description: The name of the export 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"
|