Class ByProjectKeyImageSearchPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>
com.commercetools.ml.client.ByProjectKeyImageSearchPost
All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<ImageSearchResponse>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<ImageSearchResponse>, io.vrap.rmf.base.client.RequestCommand<ImageSearchResponse>

public class ByProjectKeyImageSearchPost extends io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyImageSearchPost,ImageSearchResponse,File>

Accepts an image file and returns similar products from product catalogue.



   CompletableFuture<ApiHttpResponse<com.commercetools.ml.models.image_search.ImageSearchResponse>> result = apiRoot
            .withProjectKey("{projectKey}")
            .imageSearch()
            .post(file)
            .execute()
 
  • Constructor Details

    • ByProjectKeyImageSearchPost

      public ByProjectKeyImageSearchPost(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, File file)
    • ByProjectKeyImageSearchPost

      public ByProjectKeyImageSearchPost(ByProjectKeyImageSearchPost t)
  • Method Details