Add GET content-types-settings spec (#9734)

This commit is contained in:
Alexandre BODIN 2021-03-16 10:40:49 +01:00 committed by GitHub
parent 2467cad937
commit f549017ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,23 @@ paths:
type: array
items:
$ref: '#/components/schemas/contentType'
/content-manager/content-types-settings:
get:
tags:
- ContentTypes
description: List content types settings
responses:
200:
description: A list of content types settings
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/contentTypeSettings'
/content-manager/content-types/{uid}/configuration:
get:
tags:
@ -525,6 +542,15 @@ components:
additionalProperties:
type: any
contentTypeSettings:
type: object
properties:
uid:
type: string
description: Model uid
settings:
$ref: '#/components/schemas/configurationSettings'
contentType:
type: object
properties:
@ -608,26 +634,29 @@ components:
- manyToOne
- manyToMany
configurationSettings:
type: object
properties:
searchable:
type: boolean
bulkable:
type: boolean
filterable:
type: boolean
pageSize:
type: integer
mainField:
type: string
defaultSortBy:
type: string
defaultSortOrder:
type: string
configuration:
type: object
properties:
settings:
type: object
properties:
searchable:
type: boolean
bulkable:
type: boolean
filterable:
type: boolean
pageSize:
type: integer
mainField:
type: string
defaultSortBy:
type: string
defaultSortOrder:
type: string
$ref: '#/components/schemas/configurationSettings'
metadatas:
type: object
layouts: