Files
directus/packages/spec/specs/paths/fields/fields.yaml
2020-10-12 14:05:27 -04:00

25 lines
735 B
YAML

get:
description: Returns a list of the fields available in the project.
operationId: getFields
parameters:
- $ref: "../../openapi.yaml#/components/parameters/Limit"
- $ref: "../../openapi.yaml#/components/parameters/Sort"
responses:
"200":
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: "../../openapi.yaml#/components/schemas/Fields"
"401":
$ref: "../../openapi.yaml#/components/responses/UnauthorizedError"
"404":
$ref: "../../openapi.yaml#/components/responses/NotFoundError"
tags:
- Fields