We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前使用 API /api/notebook/createNotebook 创建笔记本时没有任何关于新建的笔记本的信息返回, 导致获取新建笔记本的 ID 需要使用 API /api/notebook/lsNotebooks 查询并对 ID 排序才能获取刚刚新建的笔记本信息, 而其他的 API 操作大都需要依赖笔记本的 ID
/api/notebook/createNotebook
/api/notebook/lsNotebooks
响应体的 data 属性值为一个描述刚刚新建笔记本对象, 可以参照 /api/notebook/lsNotebooks 返回值中 notebooks 列表包含的对象, 如下例所示
data
notebooks
{ "code": 0, "msg": "", "data": { "id": "20211206203839-qh4vymb", "name": "协作", "icon": "1f4da", "sort": 0, "closed": false } }
注: API 文档/api/notebook/lsNotebooks 中的响应体已过时, 需要更新为下例所示
{ "code": 0, "msg": "", "data": { "notebooks": [ { "id": "20211206203839-qh4vymb", "name": "协作", "icon": "1f4da", "sort": 0, "closed": false }, { "id": "20210808180117-czj9bvb", "name": "思源笔记用户指南", "icon": "1f4d4", "sort": 1, "closed": false } ] } }
The text was updated successfully, but these errors were encountered:
📝 更新列出笔记本 API /api/notebook/lsNotebooks 响应示例 #3934
93c9021
88250
No branches or pull requests
在什么情况下你需要该特性? In what scenarios do you need this function?
目前使用 API
/api/notebook/createNotebook
创建笔记本时没有任何关于新建的笔记本的信息返回, 导致获取新建笔记本的 ID 需要使用 API/api/notebook/lsNotebooks
查询并对 ID 排序才能获取刚刚新建的笔记本信息, 而其他的 API 操作大都需要依赖笔记本的 ID描述可能的最优解决方案 Describe the optimal solution
响应体的
data
属性值为一个描述刚刚新建笔记本对象, 可以参照/api/notebook/lsNotebooks
返回值中notebooks
列表包含的对象, 如下例所示注: API 文档
/api/notebook/lsNotebooks
中的响应体已过时, 需要更新为下例所示The text was updated successfully, but these errors were encountered: