Wiki
POST /api/v1/pages
ページを作成する。
入力値
名前 | 必須 | 型 | 説明 |
---|---|---|---|
body | ✔ | String | ページの本文 |
title | ✔ | String | ページのタイトル |
GET /api/v1/pages
ページ一覧を作成日時の降順で取得する。
例
curl -H "Authorization: Bearer ${ACCESS_TOKEN}" https://help.wikihub.io/api/v1/pages
[
{
"body": "...",
"community": {
"created_at": "2016-02-20T07:12:59+09:00",
"domain_name": "help",
"id": 4,
"name": "WikiHub Help",
"updated_at": "2016-04-30T19:44:40+09:00"
},
"created_at": "2016-02-20T07:12:59+09:00",
"id": 11,
"rendered_body": "...",
"title": "TopPage",
"updated_at": "2016-03-16T05:22:23+09:00"
}
]
DELETE /api/v1/pages/:page_title
ページを削除する。
GET /api/v1/pages/:page_title
ページを取得する。
例
curl -H "Authorization: Bearer ${ACCESS_TOKEN}" https://help.wikihub.io/api/v1/pages/TopPage
{
"body": "...",
"community": {
"created_at": "2016-02-20T07:12:59+09:00",
"domain_name": "help",
"id": 4,
"name": "WikiHub Help",
"updated_at": "2016-04-30T19:44:40+09:00"
},
"created_at": "2016-02-20T07:12:59+09:00",
"id": 11,
"rendered_body": "...",
"title": "TopPage",
"updated_at": "2016-03-16T05:22:23+09:00"
}
PATCH /api/v1/pages/:page_title
ページを更新する。
入力値
名前 | 必須 | 型 | 説明 |
---|---|---|---|
body | String | ページの本文 | |
title | String | ページのタイトル |