POST /api/v1/issues

議論を作成する。

入力値

名前 必須 説明
body String 議論の本文
title String 議論のタイトル

GET /api/v1/issues

議論一覧を作成日時の降順で取得する。

curl -H "Authorization: Bearer ${ACCESS_TOKEN}" https://help.wikihub.io/api/v1/issues
[
  {
    "body": "...",
    "closed": true,
    "community": {
      "created_at": "2016-02-22T00:40:36+09:00",
      "domain_name": "sandbox",
      "id": 7,
      "name": "砂場",
      "updated_at": "2016-05-02T09:42:54+09:00"
    },
    "created_at": "2016-04-05T03:35:36+09:00",
    "incremental_id": 1,
    "rendered_body": "...",
    "title": "...",
    "updated_at": "2016-04-06T00:28:39+09:00",
    "user": {
      "created_at": "2016-02-12T19:49:47+09:00",
      "id": 1,
      "image_url": "https://secure.gravatar.com/avatar/089127ffb92a19d3d37815673cca06dc",
      "name": "r7kamura"
    }
  }
]

GET /api/v1/issues/:issue_incremental_id

議論を取得する。

curl -H "Authorization: Bearer ${ACCESS_TOKEN}" https://help.wikihub.io/api/v1/issues/1
{
  "body": "...",
  "closed": true,
  "community": {
    "created_at": "2016-02-22T00:40:36+09:00",
    "domain_name": "sandbox",
    "id": 7,
    "name": "砂場",
    "updated_at": "2016-05-02T09:42:54+09:00"
  },
  "created_at": "2016-04-05T03:35:36+09:00",
  "incremental_id": 1,
  "rendered_body": "...",
  "title": "...",
  "updated_at": "2016-04-06T00:28:39+09:00",
  "user": {
    "created_at": "2016-02-12T19:49:47+09:00",
    "id": 1,
    "image_url": "https://secure.gravatar.com/avatar/089127ffb92a19d3d37815673cca06dc",
    "name": "r7kamura"
  }
}

PATCH /api/v1/issues/:issue_incremental_id

議論を更新する。

入力値

名前 必須 説明
body String 議論の本文
closed Boolean 議論が終了済みかどうか
title String 議論のタイトル