Class ByProjectKeyVariantsGet

All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyVariantsGet>, ErrorableTrait<ByProjectKeyVariantsGet>, ExpandableTrait<ByProjectKeyVariantsGet>, PagingTrait<ByProjectKeyVariantsGet>, QueryTrait<ByProjectKeyVariantsGet>, SortableTrait<ByProjectKeyVariantsGet>, ClientRequestCommand<VariantPagedQueryResponse>, CreateHttpRequestCommand, HttpRequestCommand<VariantPagedQueryResponse>, RequestCommand<VariantPagedQueryResponse>

Queries Variants matching the provided predicates. This endpoint returns both current (published) and staged (draft) data for each Variant.

When querying an Attribute, you must always include both the attribute-name and attribute-value details in the QueryPredicate. Otherwise, a 400 Bad Request error will occur.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.variant.VariantPagedQueryResponse>> result = apiRoot
            .withProjectKey("{projectKey}")
            .variants()
            .get()
            .execute()