memos icon indicating copy to clipboard operation
memos copied to clipboard

[Bug] Can not get resources when listing memos

Open YiHui-Liu opened this issue 1 year ago • 5 comments

Describe the bug

URL: https://memos.foolishfox.cn/api/v1/memos?pageSIze=10&filter=creator==%27users/1%27&&visibilities==[%27PUBLIC%27]

there is no resource in list. but i can get resource list by https://memos.foolishfox.cn/api/v1/memos/91/resources

Steps to reproduce

as above

The version of Memos you're using.

v0.23.0

Screenshots or additional context

No response

YiHui-Liu avatar Nov 06 '24 12:11 YiHui-Liu

v0.23.0通过api获取的json文件中"nodes": [], "resources": [], "snippet": "" 三个都为空。v0.22.5中有对应信息。主要是由于resources项的缺失,靠外部工具解析json文件没办法获取包含图片在内的资源文件的信息了。不知为何做此修改?

zhaohao avatar Nov 07 '24 15:11 zhaohao

Issue is not in English. It has been translated automatically.


In the json file obtained through the api in v0.23.0, "nodes": [], "resources": [], "snippet": "" are all empty. There is corresponding information in v0.22.5. Mainly due to the lack of the resources item, it is impossible to obtain information about resource files including images by parsing json files with external tools. I don’t know why this change was made?

Issues-translate-bot avatar Nov 07 '24 15:11 Issues-translate-bot

v0.23.0通过api获取的json文件中"nodes": [], "resources": [], "snippet": "" 三个都为空。v0.22.5中有对应信息。主要是由于resources项的缺失,靠外部工具解析json文件没办法获取包含图片在内的资源文件的信息了。不知为何做此修改?

Yes, it's a good project, but the API changes too frequently and there is no complete documentation.

YiHui-Liu avatar Nov 07 '24 18:11 YiHui-Liu

频繁改动API不是个好的做法

jkjoy avatar Nov 11 '24 06:11 jkjoy

Issue is not in English. It has been translated automatically.


Frequent API changes are not a good idea

Issues-translate-bot avatar Nov 11 '24 06:11 Issues-translate-bot

because of the API changes, the Android APP cannot obtain resources and display them normally. @boojack

YiHui-Liu avatar Dec 02 '24 08:12 YiHui-Liu

根据https://github.com/usememos/memos/issues/4179 的官方回复,添加 &view=MEMO_VIEW_FULL参数可以像旧版本一样获取完整信息。

https://demo.usememos.com/api/v1/memos?pageSize=100&filter=visibilities == ['PUBLIC'] && creator == 'users/1'&view=MEMO_VIEW_FULL

@YiHui-Liu @jkjoy

zhaohao avatar Dec 09 '24 13:12 zhaohao

Issue is not in English. It has been translated automatically.


According to the official reply at https://github.com/usememos/memos/issues/4179, adding the &view=MEMO_VIEW_FULL parameter can get complete information like the old version.

https://demo.usememos.com/api/v1/memos?pageSize=100&filter=visibilities == ['PUBLIC'] && creator == 'users/1'&view=MEMO_VIEW_FULL

@YiHui-Liu @jkjoy

Issues-translate-bot avatar Dec 09 '24 13:12 Issues-translate-bot

根据#4179 的官方回复,添加 &view=MEMO_VIEW_FULL参数可以像旧版本一样获取完整信息。

https://demo.usememos.com/api/v1/memos?pageSize=100&filter=visibilities == ['PUBLIC'] && creator == 'users/1'&view=MEMO_VIEW_FULL

@YiHui-Liu @jkjoy

收到

jkjoy avatar Dec 10 '24 00:12 jkjoy

Issue is not in English. It has been translated automatically.


According to the official reply of #4179, adding the &view=MEMO_VIEW_FULL parameter can get the complete information like the old version.

https://demo.usememos.com/api/v1/memos?pageSize=100&filter=visibilities == ['PUBLIC'] && creator == 'users/1'&view=MEMO_VIEW_FULL

@YiHui-Liu @jkjoy

receive

Issues-translate-bot avatar Dec 10 '24 00:12 Issues-translate-bot

根据#4179 的官方回复,添加 &view=MEMO_VIEW_FULL参数可以像旧版本一样获取完整信息。

https://demo.usememos.com/api/v1/memos?pageSize=100&filter=visibilities == ['PUBLIC'] && creator == 'users/1'&view=MEMO_VIEW_FULL

@YiHui-Liu @jkjoy

好的,成功解决了,十分感谢。 OK, this helps me solve the issue, Thanks a lot!

YiHui-Liu avatar Jan 07 '25 04:01 YiHui-Liu