【问题标题】:Ghost API not adding post bodyGhost API 未添加帖子正文
【发布时间】:2019-01-31 18:55:49
【问题描述】:

存在以下问题:当在https://localhost:2368/ghost/api/v0.1/posts 上使用带有post 请求的以下有效负载时,帖子正文未加载到幽灵博客中。

{
  title: 'some title',
  html: '<p>some html</p>',
  plaintext: 'some plaintext'
}

请求后,只有标题加载到ghost blog中。

使用 Ghost v2.13.1

有助于发现应该用于帖子正文的字段。

【问题讨论】:

    标签: ghost-blog


    【解决方案1】:

    @mattcameron Ghost 使用 mobiledoc (spec) - htmlplaintext 字段由此生成,不能单独设置。

    v0.1 API 是私有的,并且没有记录,因为它不是为在管理区域之外使用而设计的,如果可以的话,我建议您稍等片刻,等待即将与 SDK 一起发布的 v2 Admin API使其更易于使用。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多