Back

Created a sdk for rust but got stuck

  • 0
  • General
  • REST API
R2
21 May, 2024, 19:10

i am the maintainer of the rust appwite package https://crates.io/crates/unofficial_appwrite . all the endpoints work for each services for server side but i can't get the query to work. i use the rest api documentation mostly and other sdks like dart, python and javascript to get most part working. but i can't get the queries to work. since their is no docs on how to use queries with a rest api, all i need is assistance on how to achieve this with rest api so i can do that with rust. for example in your list document api doc you gave the below

TypeScript
GET /v1/databases/{databaseId}/collections/{collectionId}/documents HTTP/1.1 Host: cloud.appwrite.io Content-Type: application/json X-Appwrite-Response-Format: 1.5.0 X-Appwrite-Project: 5df5acd0d48c2 X-Appwrite-Session: X-Appwrite-Key: 919c2d18fb5d4...a2ae413da83346ad2 X-Appwrite-JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...

how do you add query to the above or give me an algorithm to follow or a better understanding in a language like dart because i can't follow the sdk. its confusing.

TL;DR
The developer is struggling to implement queries in their Rust SDK for the Appwrite package. They have managed other functionalities using REST API documentation and other SDKs, but queries remain challenging. They are seeking guidance on how to add queries to a specific REST API call.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more