GroupBy Retail
- API version: 0.0.0
- Build date: 2023-09-28T19:17:28.544199255-04:00[America/Toronto]
GroupBy Retail API
Automatically generated by the OpenAPI Generator
Building the API client library requires:
- Java 1.8+
- Maven (3.8.3+)/Gradle (7.2+)
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>com.groupbyinc</groupId>
<artifactId>gb-retailapi-client</artifactId>
<version>0.0.0</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
repositories {
mavenCentral() // Needed if the 'gb-retailapi-client' jar has been published to maven central.
mavenLocal() // Needed if the 'gb-retailapi-client' jar has been published to the local maven repo.
}
dependencies {
implementation "com.groupbyinc:gb-retailapi-client:0.0.0"
}At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/gb-retailapi-client-0.0.0.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
// Import classes:
import com.groupbyinc.retailapi.ApiClient;
import com.groupbyinc.retailapi.ApiException;
import com.groupbyinc.retailapi.Configuration;
import com.groupbyinc.retailapi.auth.*;
import com.groupbyinc.retailapi.models.*;
import com.groupbyinc.retailapi.api.AutocompleteApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: GroupByIncEmployee
HttpBasicAuth GroupByIncEmployee = (HttpBasicAuth) defaultClient.getAuthentication("GroupByIncEmployee");
GroupByIncEmployee.setUsername("YOUR USERNAME");
GroupByIncEmployee.setPassword("YOUR PASSWORD");
// Configure API key authorization: ClientKey
ApiKeyAuth ClientKey = (ApiKeyAuth) defaultClient.getAuthentication("ClientKey");
ClientKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ClientKey.setApiKeyPrefix("Token");
AutocompleteApi apiInstance = new AutocompleteApi(defaultClient);
String xGroupbyCustomerId = "xGroupbyCustomerId_example"; // String | Header on incoming HTTP requests that is populated by the API gateway and indicates the customer ID.
Identity identity = new Identity(); // Identity |
Merchandiser merchandiser = new Merchandiser(); // Merchandiser |
Request request = new Request(); // Request | Object which is represent autocomplete request and encapsulate all passed parameters.
try {
SearchResults result = apiInstance.autocompletesearch(xGroupbyCustomerId, identity, merchandiser, request);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AutocompleteApi#autocompletesearch");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AutocompleteApi | autocompletesearch | GET /api/request | |
| ProductApi | getByProductIds | GET /api/search/product | Provided product search functionality |
| RecommendationsApiApi | predict | POST /api/predict | Provide Recommendations AI functionality. |
| RecommendationsApiApi | predictV2 | POST /api/recommendation | Provide Recommendations AI functionality. |
| SearchApi | facetSearch | POST /api/search/facet | Provided search functionality |
| SearchApi | search | POST /api/search | Provided search functionality |
- AdditionalInfo
- AttributeSuggestion
- Audience
- BiasDto
- BiasDtoStrengthDto
- BiasingProfileDto
- BoostedProductBucket
- ColorInfo
- CustomParameterDto
- CustomParameterTrigger
- DebugDto
- ErrorDto
- ErrorResponse
- Experiment
- ExperimentVariant
- Facet
- FacetSearchRequestDto
- FacetSearchResponseDto
- FieldMask
- Filter
- FilterParameter
- FulfillmentInfo
- Identity
- Image
- Interval
- Merchandiser
- MessageType
- Metadata
- NavigationDto
- NavigationType
- NavigationTypeDto
- Order
- Overwrites
- PageInfoDto
- PinnedRefinement
- PredictResults
- PriceInfo
- PriceInfoPriceEffectiveTime
- PriceInfoPriceExpireTime
- PriceInfoPriceRange
- PriceInfoPriceRangeOriginalPrice
- PriceInfoPriceRangePrice
- ProductCustomAttribute
- ProductDto
- ProductDtoAudience
- ProductDtoAvailableTime
- ProductDtoColorInfo
- ProductDtoPriceInfo
- ProductDtoPublishTime
- ProductDtoRating
- ProductDtoRetrievableFields
- Promotion
- QueryPatternTrigger
- QueryPatternTriggerType
- Range
- RangeFilter
- Rating
- RecommendationsErrorResponse
- RecommendationsRequest
- RecordDto
- Refinement
- RefinementDto
- Request
- Role
- RuleConfiguration
- RuleTemplate
- RuleTemplateSection
- RuleType
- RuleVariant
- SearchFilter
- SearchMetadataDto
- SearchRequestDto
- SearchRequestDtoOverwrites
- SearchResponseDto
- SearchResults
- SearchResultsStats
- SearchTerms
- SelectedRefinementDto
- SelectedRefinementTrigger
- SelectedRefinementTriggerType
- Sort
- SortDto
- SortDtoOrderDto
- SpellCorrectionMode
- Stats
- TemplateDto
- TemplateDtoTriggerSet
- Timestamp
- TriggerSet
- ValueFilter
- ValueFilterValueFilterType
- ZoneDto
- ZoneDtoType
- ZoneType
Authentication schemes defined for the API:
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
- Type: HTTP basic authentication
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.