Class SearchAPI


  • public final class SearchAPI
    extends QueryResource
    Implementation of a connector for the remote API's Search endpoint.


    Provides static access to all routes of this endpoint which may be used to search for a particular series.

    • Method Detail

      • series

        public static com.fasterxml.jackson.databind.JsonNode series​(@Nonnull
                                                                     APIConnection con,
                                                                     QueryParameters params)
                                                              throws APIException
        Returns series search results based on the given query parameters as raw JSON. The result contains basic information of all series matching the query parameters.


        Corresponds to remote API route: [GET] /search/series

        Parameters:
        con - Initialized connection to be used for API communication
        params - Object containing key/value pairs of query search parameters. For a complete list of possible search parameters see the API documentation or use getAvailableSearchParameters(con).
        Returns:
        JSON object containing the series search results
        Throws:
        APIException - If an exception with the remote API occurs, e.g. authentication failure, IO error, resource not found, etc. or if no records are found that match your query.
      • getAvailableSearchParameters

        public static com.fasterxml.jackson.databind.JsonNode getAvailableSearchParameters​(@Nonnull
                                                                                           APIConnection con)
                                                                                    throws APIException
        Returns possible query parameters, which can be used to search for series, as raw JSON.


        Corresponds to remote API route: [GET] /search/series/params

        Parameters:
        con - Initialized connection to be used for API communication
        Returns:
        JSON object containing possible parameters to query by in the series search route
        Throws:
        APIException - If an exception with the remote API occurs, e.g. authentication failure, IO error, resource not found, etc.