【发布时间】:2021-05-16 16:30:22
【问题描述】:
具有以下字段的内容类型“产品”:
-
string标题 -
int数量 -
string描述 -
double价格
是否有一个 API 端点来检索“产品”内容类型的结构或架构而不是获取值?
例如:在端点localhost:1337/products,响应可以是:
[
{
field: "title",
type: "string",
other: "col-xs-12, col-5"
},
{
field: "qty",
type: "int"
},
{
field: "description",
type: "string"
},
{
field: "price",
type: "double"
}
]
架构或表的结构而不是实际值被发送到哪里?
如果不在 Strapi CMS 中,这是否可以在 Hasura 和 Sanity 等其他无头 CMS 上实现?
【问题讨论】:
标签: strapi hasura sanity headless-cms