mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
45 lines
989 B
YAML
45 lines
989 B
YAML
get:
|
|
description: List the files.
|
|
tags:
|
|
- Files
|
|
operationId: getFiles
|
|
responses:
|
|
"200":
|
|
description: Successful request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
type: array
|
|
items:
|
|
$ref: "#/components/schemas/File"
|
|
"401":
|
|
$ref: "#/components/responses/UnauthorizedError"
|
|
post:
|
|
description: Create a new file.
|
|
tags:
|
|
- Files
|
|
operationId: createFile
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
type: string
|
|
responses:
|
|
"200":
|
|
description: Successful request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: "#/components/schemas/File"
|
|
"401":
|
|
$ref: "#/components/responses/UnauthorizedError"
|