我创建了一个集合类型“帖子”并创建了许多帖子。现在,我制作了另一个集合类型的类别,其标题为 ['softwaresApps','gifts','technology'] ,其中包含帖子关系。然后我尝试获取http://localhost:1337/api/categories?populate=*"并得到:
{
"data": [
{
"id": 1,
"attributes": {
"title": "Technology",
"createdAt": "2022-01-09T00:43:05.899Z",
"updatedAt": "2022-01-09T00:45:26.131Z",
"publishedAt": "2022-01-09T00:44:04.298Z"
}
},
{
"id": 2,
"attributes": {
"title": "Gifts",
"createdAt": "2022-01-09T00:43:48.196Z",
"updatedAt": "2022-01-09T00:43:53.979Z",
"publishedAt": "2022-01-09T00:43:53.961Z"
}
},
{
"id": 3,
"attributes": {
"title": "softwares&apps",
"createdAt": "2022-01-09T00:48:23.706Z",
"updatedAt": "2022-01-11T00:06:48.130Z",
"publishedAt": "2022-01-09T00:49:59.571Z"
}
},
{
"id": 4,
"attributes": {
"title": "HomeSlider",
"createdAt": "2022-01-15T15:06:23.122Z",
"updatedAt": "2022-01-15T15:06:30.272Z",
"publishedAt": "2022-01-15T15:06:30.259Z"
}
}
],
"meta": {
"pagination": {
"page": 1,
"pageSize": 25,
"pageCount": 1,
"total": …Run Code Online (Sandbox Code Playgroud) strapi ×1