目录

errcode 说明

code errcode 说明
403 ConstraintViolation.DestinationInvalid 待恢复page的原路径不合法
404 NotFound.Page 没有找到Page
404 NotFound.PageVersion 没有找到PageVersion
404 NotFound.Draft 没有找到对应的草稿
404 NotFound.Message 没有找到对应的消息(一般不会出现)

1. 获取回收站内的页面详情

URL

https://your-host-name/wiki/api/wiki/team/:teamUUID/space/:spaceUUID/deleted_page/:pageUUID

HTTP Method

GET

是否需要登录

传值方式

Query

参数列表

返回JSON

{
    "uuid": "FdYSAZQ5",
    "space_uuid": "LX5eraLF",
    "owner_uuid": "A63euYZC",
    "title": "测试草稿3",
    "content": "草稿内容3",
    "operator_uuid": "A63euYZC",
    "operate_time": 1536660073396184
}

2. 删除回收站内的页面

URL

https://your-host-name/wiki/api/wiki/team/:teamUUID/space/:spaceUUID/deleted_page/:pageUUID/delete

HTTP Method

POST

是否需要登录

传值方式

JSON

参数列表

返回JSON

3. 获取回收站内的页面列表

URL

https://your-host-name/wiki/api/wiki/team/:teamUUID/space/:spaceUUID/deleted_pages

HTTP Method

GET

是否需要登录

传值方式

Query

参数列表

返回JSON

JSON键名 值类型 取值范围 取值例子 说明
deleted_pages array deleted_pages
{
    "deleted_pages": [
    {
        "uuid": "F8JoKZY2",
        "space_uuid": "KPq8SX5Z",
        "title": "read me",
        "parent_uuid": ""
    }
    ]
}

4. 恢复回收站内的页面

URL

https://your-host-name/wiki/api/wiki/team/:teamUUID/space/:spaceUUID/deleted_page/:pageUUID/restore

HTTP Method

POST

是否需要登录

传值方式

JSON

参数列表

参数名 是否必须 值类型 取值范围 默认值 取值例子 说明
new_space_uuid F string 恢复至新的space的uuid
new_parent_uuid F string 恢复至新的页面的parent_uuid

返回JSON

5. 清空回收站

URL

https://your-host-name/wiki/api/wiki/team/:teamUUID/space/:spaceUUID/delete_all_pages

HTTP Method

POST

是否需要登录

传值方式

JSON

参数列表

返回JSON

results matching ""

    No results matching ""