Skip to content
New issue

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

[Bug] Can not get resources when listing memos #4104

Open
YiHui-Liu opened this issue Nov 6, 2024 · 5 comments
Open

[Bug] Can not get resources when listing memos #4104

YiHui-Liu opened this issue Nov 6, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@YiHui-Liu
Copy link

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 YiHui-Liu added the bug Something isn't working label Nov 6, 2024
@zhaohao
Copy link

zhaohao commented Nov 7, 2024

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

@Issues-translate-bot
Copy link

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?

@YiHui-Liu
Copy link
Author

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.

@jkjoy
Copy link

jkjoy commented Nov 11, 2024

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

@Issues-translate-bot
Copy link

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


Frequent API changes are not a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants