使用组件和动态区域时,Strapi Api 不显示我 post 的内容
Strapi Api doens't show me content of my post when using Components and DynamicZones
正如标题所说,我本地的Strapi项目没有显示API中post的内容。权限已授予,我尝试了几次删除并从头开始。
As you can see, I have access to a single post "/api/post-templates/1"
and I have access to several posts if I had them. "/api/post-templates"
问题是,我无法看到我输入的 post 字段的任何内容。
Here is the example of the content type which gives its content and this content type is made by explicitly telling what I want on the page.
Picture of Strapi-side which doesn't show its content
And which shows its content in API.
我想访问内容以便在 front-end 上使用它,就像我在 post卡片盒中所做的那样。
在他们的 YouTube 频道上找到了答案 - https://www.youtube.com/watch?v=jOSh2nogROg。如果您想在 API 中查看动态区域或组件内容,您必须像这样添加“populate=*”,“/api/post-templates?populate= * “
正如标题所说,我本地的Strapi项目没有显示API中post的内容。权限已授予,我尝试了几次删除并从头开始。
As you can see, I have access to a single post "/api/post-templates/1"
and I have access to several posts if I had them. "/api/post-templates"
问题是,我无法看到我输入的 post 字段的任何内容。
Here is the example of the content type which gives its content and this content type is made by explicitly telling what I want on the page.
Picture of Strapi-side which doesn't show its content
And which shows its content in API.
我想访问内容以便在 front-end 上使用它,就像我在 post卡片盒中所做的那样。
在他们的 YouTube 频道上找到了答案 - https://www.youtube.com/watch?v=jOSh2nogROg。如果您想在 API 中查看动态区域或组件内容,您必须像这样添加“populate=*”,“/api/post-templates?populate= * “