Class SearchResource

java.lang.Object
dev.dosya.sdk.resource.SearchResource

public final class SearchResource extends Object
Provides operations for searching files, folders, shares, and file requests in Dosya.
Since:
0.1.0
  • Constructor Details

    • SearchResource

      public SearchResource(@NotNull @NotNull DosyaHttpClient http)
      Creates a new SearchResource backed by the given HTTP client.
      Parameters:
      http - the HTTP client used to make API requests
  • Method Details

    • query

      @NotNull public @NotNull SearchResponse query(@NotNull @NotNull SearchParams params)
      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