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

Enquire about filter params in list memos api #3411

Closed
JakeLaoyu opened this issue May 20, 2024 · 2 comments
Closed

Enquire about filter params in list memos api #3411

JakeLaoyu opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JakeLaoyu
Copy link
Contributor

JakeLaoyu commented May 20, 2024

Describe the bug

Consult how to use the filter parameter when passing it into the fetch function. I cannot access no matter what format I use.

image image

Steps to reproduce

curl --location 'http://127.0.0.1:5230/api/v1/memos?filter=creator%3D%3Dusers%2F1%20%26%26%20visibilities%3D%3D%5B%27PUBLIC%27%2C%20%27PROTECTED%27%5D' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoiIiwiaXNzIjoibWVtb3MiLCJzdWIiOiIxIiwiYXVkIjpbInVzZXIuYWNjZXNzLXRva2VuIl0sImV4cCI6MTcxNjc3OTgzMiwiaWF0IjoxNzE2MTc1MDMyfQ.kEEep1DpFH1Cj3jq5YR-8NGI7EEUlU9AmGTj17lJY_k'

The version of Memos you're using

0.22.0

Screenshots or additional context

No response

@JakeLaoyu JakeLaoyu added the bug Something isn't working label May 20, 2024
@JakeLaoyu JakeLaoyu changed the title Ask about filter params Ask about filter params in list memos api May 20, 2024
@JakeLaoyu JakeLaoyu changed the title Ask about filter params in list memos api Enquire about filter params in list memos api May 20, 2024
@boojack
Copy link
Collaborator

boojack commented May 20, 2024

Good catch. There should be a single quote around creator. And the documentation has been updated.

e.g., encodeURIComponent("include_comments==true&&creator=='users/1'")

@boojack boojack closed this as completed May 20, 2024
@JakeLaoyu
Copy link
Contributor Author

@boojack thx

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

2 participants