Bundle: removeParagraph

Bundle: removeParagraph

删除段落 / 删除该段落下的某个版本(reword)。

Request

HTTP request

POST https://www.featapi.com/api/dimzou/bundle/{id}/remove-paragraph/

Parameters

  • Path parameters
Parameter nameValueDescription
idstringBundle(book) ID

授权

此请求需要具有以下所有范围的授权:

Scopes
dimzou_bundle

有关更多信息,请参阅认证和授权页面。

Request body

在请求体中,提供具有以下数据:

Property nameValueDescriptionNotes
Required Properties
paragraph_idinteger删除的段落id
Optional Properties
reword_idinteger删除的reword id

Response

如果成功,则此方法在响应正文中返回 Dimzou.paragraph 资源。

201 成功删除段落

{
    "data": {
        "id": 108111,
        "bundle_id": 107831,
        "type": 0,
        "sort": 1,
        "last_modified": "2020-03-23T03:18:13.279723Z",
        "create_time": "2020-02-26T12:04:22.110703Z",
        "delete_time": null,
        "title": {
            "id": 3720174,
            "sort": null,
            "info": null,
            "node_id": 108111,
            "rewordings": [
                {
                    "id": 2832783,
                    "user":{},
                    "type": 0,
                    "content": "章节1",
                    "html_content": "<h1>章节1</h1>",
                    "img": null,
                    "imgs": {},
                    "crop_img": null,
                    "crop_imgs": {},
                    "status": 100,
                    "version": 1,
                    "last_modified": "2020-02-26T12:04:23.776570Z",
                    "create_time": "2020-02-26T12:04:22.112230Z",
                    "is_selected": true,
                    "content_meta": {},
                    "base_on": null,
                    "comments_count": 0,
                    "likes_count": 1,
                    "template_config": null,
                    "media_type": 0,
                    "img_height": null,
                    "img_width": null,
                    "file": null,
                    "file_info": null,
                    "submit_version": 1,
                    "comments": [],
                    "version_lock": true 
                }] 
        },
        "summary": {
            "id": 3720175,
            "sort": null,
            "info": null,
            "node_id": 108111,
            "rewordings": [
                {
                    "id": 2842189,
                    "user": {},
                    "type": 100,
                    "content": "章节1",
                    "html_content": "<p>章节1</p>",
                    "img": null,
                    "imgs": {},
                    "crop_img": null,
                    "crop_imgs": {},
                    "status": 100,
                    "version": 2,
                    "last_modified": "2020-02-28T03:50:02.510033Z",
                    "create_time": "2020-02-28T03:35:59.763245Z",
                    "is_selected": true,
                    "content_meta": {},
                    "base_on": 2832784,
                    "comments_count": 0,
                    "likes_count": 0,
                    "template_config": null,
                    "media_type": 0,
                    "img_height": null,
                    "img_width": null,
                    "file": null,
                    "file_info": null,
                    "submit_version": 2,
                    "comments": [],
                    "version_lock": false 
                }] 
        },
        "cover": {
            "id": 3984705,
            "sort": null,
            "info": null,
            "node_id": 108111,
            "rewordings": [
                {
                    "id": 2961775,
                    "user":{},
                    "type": 300,
                    "content": null,
                    "html_content": null,
                    "img": "https://pic1.feat.com/media/4416382589854/dimzou/reword/300/20200323_BF13528_%E4%B8%8B%E8%BD%BD2.png",
                    "imgs": {
                        "path": "https://pic1.feat.com/media/4416382589854/dimzou/reword/300/20200323_BF13528_%E4%B8%8B%E8%BD%BD2.png",
                        "sizes": {
                            "cover_sm": {
                                "width": 300,
                                "height": 300,
                                "path": "https://pic1.feat.com/media/cover_sm/4416382589854/dimzou/reword/300/20200323_BF13528_%E4%B8%8B%E8%BD%BD2_300x300.JPEG" 
                            } 
                        } 
                    },
                    "crop_img": "https://pic1.feat.com/media/4416382589854/dimzou/reword/300/20200323_98098B8_blob",
                    "crop_imgs": {
                        "path": "https://pic1.feat.com/media/4416382589854/dimzou/reword/300/20200323_98098B8_blob",
                        "sizes": {
                            "cover_sm": {
                                "width": 300,
                                "height": 300,
                                "path": "https://pic1.feat.com/media/cover_sm/4416382589854/dimzou/reword/300/20200323_98098B8_blob_300x300.JPEG" 
                            } 
                        } 
                    },
                    "status": 100,
                    "version": 1,
                    "last_modified": "2020-03-23T03:03:10.035995Z",
                    "create_time": "2020-03-23T03:03:10.025052Z",
                    "is_selected": true,
                    "content_meta": null,
                    "base_on": null,
                    "comments_count": 0,
                    "likes_count": 0,
                    "template_config": {
                        "I": {
                            "cropData": {
                                "x": 20.21525124584717,
                                "y": 46.52336482558139,
                                "width": 238.99999999999994,
                                "height": 107.54999999999998,
                                "rotate": 0,
                                "scaleX": 1,
                                "scaleY": 1 
                            } 
                        } 
                    },
                    "media_type": 0,
                    "img_height": 211,
                    "img_width": 239,
                    "file": null,
                    "file_info": null,
                    "submit_version": 1,
                    "comments": [],
                    "version_lock": false 
                }] 
        },
        "content": [
            {
                "id": 3720176,
                "sort": 1,
                "info": null,
                "node_id": 108111,
                "rewordings": [
                    {
                        "id": 2832787,
                        "user": {},
                        "type": 200,
                        "content": "第一段-2",
                        "html_content": "<p>第一段-<span data-entity-type=\"annotation:delete\" data-time=\"1582718692250\" data-user-id=\"4416382589854\">1</span><span data-entity-type=\"annotation:add\" data-time=\"1582718692251\" data-userid=\"4416382589854\" data-username=\"zetong lin\">2</span></p>",
                        "img": null,
                        "imgs": {},
                        "crop_img": null,
                        "crop_imgs": {},
                        "status": 100,
                        "version": 3,
                        "last_modified": "2020-02-26T12:04:54.320280Z",
                        "create_time": "2020-02-26T12:04:54.317917Z",
                        "is_selected": true,
                        "content_meta": {
                            "blocks": [
                                {
                                    "key": "neu9",
                                    "data": {
                                    },
                                    "text": "第一段-12",
                                    "type": "unstyled",
                                    "depth": 0,
                                    "entityRanges": [
                                        {
                                            "key": 0,
                                            "length": 1,
                                            "offset": 4 
                                        },
                                        {
                                            "key": 1,
                                            "length": 1,
                                            "offset": 5 
                                        }],
                                    "inlineStyleRanges": [
                                    ] 
                                }],
                            "entityMap": {
                                "0": {
                                    "data": {
                                        "time": 1582718692250,
                                        "user_id": 4416382589854,
                                        "entityType": "annotation:delete" 
                                    },
                                    "type": "annotation:delete",
                                    "mutability": "IMMUTABLE" 
                                },
                                "1": {
                                    "data": {
                                        "time": 1582718692251,
                                        "userid": 4416382589854,
                                        "username": "zetong lin",
                                        "entityType": "annotation:add" 
                                    },
                                    "type": "annotation:add",
                                    "mutability": "MUTABLE" 
                                } 
                            } 
                        },
                        "base_on": 2832786,
                        "comments_count": 0,
                        "likes_count": 0,
                        "template_config": null,
                        "media_type": 0,
                        "img_height": null,
                        "img_width": null,
                        "file": null,
                        "file_info": null,
                        "submit_version": 3,
                        "comments": [],
                        "version_lock": false 
                    }] 
            }],
        "user_rewording_likes": [
            {
                "rewording_id": 2832783,
                "id": 107,
                "create_time": "2020-02-27T11:42:13.485786Z",
                "last_modified": "2020-02-27T11:42:13.485766Z",
                "deleted_at": null 
            }],
        "manuscript": null,
        "visibility": true 
    } 
}

400 Submitted data error

示例返回数据可参考 API Common – Validation Exception

401 Permission Deny

示例返回数据可参考 API Common – Authorization Failed

发表评论

您的电子邮箱地址不会被公开。

您可以使用以下 HTML标签和属性:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Captcha Code