Query Link API Specification Reference
Since version 1.17.0, ReductStore supports Query Links - a secure way to share data without access tokens. These links can be created with the creator's read permissions and an expiration time, allowing controlled anonymous access to specific data.
Create a Query Link
You can use this method to create a query link for a specific bucket. The request body should include the bucket and endpoint, as well as a query parameter to filter the data. The given query will be applied to the data when accessed via the link.
The method receives a JSON object in the request body with the following fields:
{
expire_at: "integer", // Expiration date in unix timestamp (seconds)
bucket: "string", // Bucket name
entry: "string", // Entry name
query: "object", // Query object
index: "integer", // (Optional) Record index in the query result to be returned by default (r query parameter)
}
Download Data Using a Query Link
You can use this method to download data using a query link. The method applies the query specified when creating the link to filter the data and returns the content of the record along with metadata in the response headers.
Range Requests
The method supports HTTP Range Requests to download partial content. You can specify the range of bytes to download using the Range
header in the request.
The server will respond with the specified range of bytes along with the appropriate Content-Range
header in the response.