Package dev.dosya.sdk.resource
Class SearchResource
java.lang.Object
dev.dosya.sdk.resource.SearchResource
Provides operations for searching files, folders, shares, and file requests in Dosya.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResource(@NotNull DosyaHttpClient http) Creates a newSearchResourcebacked by the given HTTP client. -
Method Summary
Modifier and TypeMethodDescription@NotNull SearchResponsequery(@NotNull SearchParams params) Searches for files, folders, shares, and file requests matching the given query.
-
Constructor Details
-
SearchResource
Creates a newSearchResourcebacked by the given HTTP client.- Parameters:
http- the HTTP client used to make API requests
-
-
Method Details
-
query
Searches for files, folders, shares, and file requests matching the given query.- Parameters:
params- the search parameters including workspace ID, query string, and pagination- Returns:
- the search response containing matched files, folders, shares, and file requests
- Throws:
DosyaApiException- if the API returns an error
-