内容纲要

heroku 的 REST API

https://devcenter.heroku.com/articles/platform-api-reference?ref=hackernoon.com#statuses

JSON 返回值

成功

{
    "data": {
      "hello": true
    },
    "errors": [],
    "success": true,
    "status_code": 200
}

失败

{
    "data": [],
    "errors": [
      "This an example error message"
    ],
    "success": false,
    "status_code": 400
}
{
    "data": {
        "test_model": {
            "id": 2
        }
    },
    "success": false,
    "status_code": 400
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注