Prepare custom fields

This commit is contained in:
Eike Kettner
2020-09-28 22:54:35 +02:00
parent 0f45e1b097
commit 248ad04dd0
11 changed files with 297 additions and 21 deletions

View File

@ -3202,6 +3202,23 @@ paths:
schema:
$ref: "#/components/schemas/BasicResult"
/sec/customfields:
get:
tags: [ Custom Fields ]
summary: Get all defined custom fields.
description: |
Get all custom fields defined for the current collective.
security:
- authTokenHeader: []
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/CustomFieldList"
components:
schemas:
ItemsAndRefs:
@ -3282,6 +3299,38 @@ components:
format: date-time
CustomFieldList:
description: |
A list of known custom fields.
required:
- items
properties:
items:
type: array
items:
$ref: "#/components/schemas/CustomField"
CustomField:
description: |
A custom field definition.
required:
- id
- name
- ftype
- created
properties:
id:
type: string
format: ident
name:
type: string
ftype:
type: string
format: customfieldtype
created:
type: integer
format: date-time
JobPriority:
description: |
Transfer the priority of a job.
@ -4372,6 +4421,7 @@ components:
type: array
items:
$ref: "#/components/schemas/SourceAndTags"
Source:
description: |
Data about a Source. A source defines the endpoint where