Files
directus/packages/spec/specs/paths/fields/fields.yaml
2020-09-14 20:01:01 +02:00

24 lines
727 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/Field'
'401':
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
'404':
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
tags:
- Fields