Class MindeeApiV2

    • Constructor Detail

      • MindeeApiV2

        public MindeeApiV2()
    • Method Detail

      • reqGetJob

        public abstract JobResponse reqGetJob​(String jobId)
        Attempts to poll the queue.
        Parameters:
        jobId - id of the job to get.
      • reqGetResult

        public abstract <TResponse extends CommonResponse> TResponse reqGetResult​(Class<TResponse> responseClass,
                                                                                  String inferenceId)
        Retrieves the inference from a 302 redirect.
        Parameters:
        inferenceId - ID of the inference to poll.
      • reqGetSearchModels

        public abstract SearchResponse reqGetSearchModels​(String modelName,
                                                          String modelType)
        Retrieves a list of models.
        Parameters:
        modelName - search term for model name
        modelType - search term for model type
      • makeUnknownError

        protected ErrorResponse makeUnknownError​(int statusCode)
        Creates an "unknown error" response from an HTTP status code.