I'm trying to make a request with a search query while using the REST API and can only find documentation for how to do this with the SDK.
For example: URL/posts/documents?query=user_id=${UID}
Is this possible?
Are you using cloud?
Yes
Cloud doesn't support a REST API right now, as far as I know 😅
I've already read these docs but they are refering to the SDK: https://appwrite.io/docs/queries
Interesting. I am able to make request with cloud and it works fine. Just not sure what the query params should look like
How would this look normally, without cloud?
That's interesting 👀 I assumed it wasn't supported as there were no docs.
You can try checking the docs for a later version of Appwrite that have REST docs.
Might give you an idea of how the request would need to be.
I'll try to find those. As long as it's possible.
Dont want to be looking for something that's not there 😉
Seems like REST docs were added from v1.2.x: https://appwrite.io/docs/client/account?sdk=web-default&v=1.2.x
I'm definitely getting closer with this resource but still having a hard time constructing the query: https://appwrite.io/docs/rest#query
?queries[]=select()&queries[]=equal()&queries[]=limit()
I suggest you to create a generator, wich loop over your arguments
You can what the SDK do when a query is sent: https://github.com/appwrite/sdk-for-web/blob/master/src/query.ts
it should still be possible. we just improved our docs starting with 1.2
feel free to share what you have so we can see if we can help
This is solved, right?
Not sure why it appears in the top
Yep
[SOLVED] Search Queries With REST API
Recommended threads
- AstroJS Not Listed as a Web Framework Op...
Hey folks, as a followup to this post https://discord.com/channels/564160730845151244/1102936099745177700/1440603125642952734 I was trying to see if there was a...
- Database table mysteriously empty this m...
Hello, I'm testing out appwrite (free) with a simple vue app. This morning a I created a few indexes on a table, and then noticed that it was empty... I don't e...
- Issue: Getting 401 Unauthorized Error Wh...
Hi team, I'm encountering a 401 user_unauthorized error when trying to create a row in my projects table, even though I have full user permissions configured fo...