ghost API介绍

API Client

// https://ghost.org/docs/api/v3/javascript/content/
// https://ghost.org/docs/api/v3/javascript/admin/

yarn add @tryghost/content-api
yarn add @tryghost/admin-api

 

Tools

yarn add @tryghost/helpers
yarn add @tryghost/string

const {tags, readingTime} = require('@tryghost/helpers');
const {slugify} = require('@tryghost/string');

const slug = slugify('你好 !'); // slug === "ni-hao"

 

API

// https://ghost.org/docs/api/v3/content/#endpoints
// https://ghost.org/docs/api/v3/admin/#endpoints

https://demo.ghost.io/ghost/api/v3/content/posts/?key=22444f78447824223cefc48062&include=tags,authors

 

官方文档中的小疏漏

ghost API介绍_第1张图片

你可能感兴趣的:(Ghost)