I’m using /api/content-type-builder/content-types/myuid
to get schema detail of the content type.
However, it seems this API do not include all related fields
I have a field “testTeaser” . This field is a component . My expectation is all fields of “testTeaser” component will appear in the result of the above API.
Currently I have to call another API(get component) to get detail
{
"data": {
"uid": "api::test-kv.test-kv",
"apiID": "test-kv",
"schema": {
"draftAndPublish": true,
"displayName": "TestKV",
"singularName": "test-kv",
"pluralName": "test-kvs",
"description": "",
"pluginOptions": {
"i18n": {
"localized": true
}
},
"kind": "singleType",
"collectionName": "test_kvs",
"attributes": {
"headline": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"testTeaser": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "blocks.category-preview"
}
},
"visible": true,
"restrictRelationsTo": null
}
}
}