GET /api/v1/test/test_note/374/histories 200 [ { "id": 385, "created_at": "2016-01-07T02:05:15.000Z", "note_id": 201, "index": 1, "html_url": "http://www.example.com/test/test_note/374/histories/1", "page": { "id": 374, "title": "Edit 1", "created_at": "2016-01-07T02:05:11.000Z", "updated_at": "2016-01-07T02:05:15.000Z", "is_cover": false, "note": { "id": 201, "is_private": false, "slug": "test_note", "title": "Test note", "created_at": "2016-01-07T02:05:10.000Z", "updated_at": "2016-01-07T02:05:15.000Z", "format": "html", "share": "none", "is_time_track": true, "name": "test_note", "team": { "id": 173, "name": "test", "is_default": true, "created_at": "2016-01-07T02:05:05.000Z", "updated_at": "2016-01-07T02:05:15.000Z", "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "role": "manager", "managers": [ { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:05:05.000Z", "updated_at": "2016-01-07T02:05:14.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" } ], "members": [], "plan": "micro", "model": "team" }, "html_url": "http://www.example.com/test/test_note", "avatar_url": "http://www.example.com/test/test_note/avatar", "can_pull": false, "can_request": false, "can_manage": true, "description_html": "<p></p>", "model": "note" }, "html_url": "http://www.example.com/test/test_note/374", "content": "Edit 1", "path": "Edit 1", "children": [], "model": "page" }, "title": "Test page", "content": "Test content", "diff": "<div class=\"diff\">\n <ul>\n <li class=\"ins\" data-labels=\"18806841084\"><ins><span class=\"symbol\">+</span>Test content</ins></li>\n </ul>\n</div>\n", "label": "Version #1", "model": "page_version" } ]
GET /api/v1/test/test_note/394/histories/1 200 { "id": 406, "created_at": "2016-01-07T02:05:26.000Z", "note_id": 212, "index": 1, "html_url": "http://www.example.com/test/test_note/394/histories/1", "page": { "id": 394, "title": "Edit 1", "created_at": "2016-01-07T02:05:21.000Z", "updated_at": "2016-01-07T02:05:26.000Z", "is_cover": false, "note": { "id": 212, "is_private": false, "slug": "test_note", "title": "Test note", "created_at": "2016-01-07T02:05:21.000Z", "updated_at": "2016-01-07T02:05:26.000Z", "format": "html", "share": "none", "is_time_track": true, "name": "test_note", "team": { "id": 183, "name": "test", "is_default": true, "created_at": "2016-01-07T02:05:16.000Z", "updated_at": "2016-01-07T02:05:26.000Z", "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "role": "manager", "managers": [ { "id": 3, "username": "test", "receive_email": true, "created_at": "2016-01-07T02:05:16.000Z", "updated_at": "2016-01-07T02:05:25.000Z", "keyboard_shortcuts": false, "options": { "advanced_menu": true }, "html_url": "http://www.example.com/test", "avatar_url": "http://www.example.com/test/avatar", "lang": { "code": "en", "model": "lang" }, "name": "test", "model": "user" } ], "members": [], "plan": "micro", "model": "team" }, "html_url": "http://www.example.com/test/test_note", "avatar_url": "http://www.example.com/test/test_note/avatar", "can_pull": false, "can_request": false, "can_manage": true, "description_html": "<p></p>", "model": "note" }, "html_url": "http://www.example.com/test/test_note/394", "content": "Edit 1", "path": "Edit 1", "children": [], "model": "page" }, "title": "Test page", "content": "Test content", "diff": "<div class=\"diff\">\n <ul>\n <li class=\"ins\" data-labels=\"18806841084\"><ins><span class=\"symbol\">+</span>Test content</ins></li>\n </ul>\n</div>\n", "label": "Version #1", "model": "page_version" }
GET /api/v1/test/test_note/414/histories/diff?a=1&b=2 200 { "html": "<div class=\"diff\">\n <ul>\n <li class=\"del\"><del><span class=\"symbol\">-</span><strong>Test content</strong></del></li>\n <li class=\"ins\"><ins><span class=\"symbol\">+</span><strong>Edit 1</strong></ins></li>\n </ul>\n</div>\n" }
Param name | Description |
---|---|
a optional |
Value: Must be a number. |
b optional |
Value: Must be a number. |