This API specification is available for download as an Open API 3.0 YAML file:
The following page lists available REST APIs for ICM 11 and their version dependencies:
/recommendationcontexts
This operation creates a new recommendation context. A recommendation context is just a simple string that is used as a replacement for the session ID. All events that are created for a recommendation context via REST are tagged with this context ID when they are transmitted to the connected recommendation engine. It has no semantic meaning to the recommendation engine, it just symbolizes that events with the same ID belong to the same session. This is necessary to ensure a valid data basis.
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.RecommendationContextListResource.createContext()
201 - Created
/recommendationcontexts/{RecommendationContextKey}/events
This operation creates a new recommendation context. This requires a configured recommendation service. To use this operation, specify one of the following events in the request body:
The event can only be sent successfully if the installed recommendation engines support the event type and if the corresponding back office preferences of the channel (Preferences | Recommendation Engines) are enabled for the given event type.
All events which are sent to the recommendation engine will be tagged with the RecommendationContextKey to express that they belong to a specific session. See the description of "POST /recommendationcontexts".
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.EventRecommendationsListResource.sendEvent(com.intershop.component.recommendation.capi.rest.resourceobject.RecommendationEventRO)
Location | Name | Format | Default | Example | Description |
---|---|---|---|---|---|
in path | RecommendationContextKey | string | ExampleKey | Required | The key or UUID to resolve a single item |
204 - No Content
400 - Bad Request - Unknown event type
404 - Not Found
/recommendationcontexts/{RecommendationContextKey}/basketrecommendations
This operation returns a list of recommended products for the given basket based on the basketID. This requires a configured recommendation service. The resulting list strongly depends on the configuration of the recommendation engine and on the back office preferences of the channel (Preferences | Recommendation Engines). If the request type BasketRecommendationRequest is not enabled, an empty list is returned.
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.BasketRequestRecommendationsListResource.getBasketRecommendations(java.lang.String)
Location | Name | Format | Default | Example | Description |
---|---|---|---|---|---|
in path | RecommendationContextKey | string | ExampleKey | Required | The key or UUID to resolve a single item | |
in query | basketID | string | 56z8zttzCtzgtzAAAF1ut8DHYjo | The UUID of the basket to get recommendations for |
200 - OK
400 - Bad Request - Missing parameter
404 - Not Found
/recommendationcontexts/{RecommendationContextKey}/productrecommendations
This operation returns a list of recommended products for the given product ID (SKU). This requires a configured recommendation service. The result list strongly depends on the configuration of the recommendation engine and on the back office preferences of the channel (Preferences | Recommendation Engines). If the request type ProductRecommendationRequest is not enabled, an empty list is returned.
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.ProductRequestRecommendationsListResource.getProductRecommendations(java.lang.String)
Location | Name | Format | Default | Example | Description |
---|---|---|---|---|---|
in path | RecommendationContextKey | string | ExampleKey | Required | The key or UUID to resolve a single item | |
in query | productID | string | 124566 | The SKU of the product to get recommendations for |
200 - OK
400 - Bad Request - Missing parameter
/recommendationcontexts/{RecommendationContextKey}/searchrecommendations
This operation returns a list of recommended products for the given search term. This requires a configured recommendation service. The result list strongly depends on the configuration of the recommendation engine and on the back office preferences of the channel (Preferences | Recommendation Engines). If the request type SearchRecommendationRequest is not enabled, an empty list is returned.
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.SearchRequestRecommendationsListResource.getProductRecommendations(java.lang.String)
Location | Name | Format | Default | Example | Description |
---|---|---|---|---|---|
in path | RecommendationContextKey | string | ExampleKey | Required | The key or UUID to resolve a single item | |
in query | searchTerm | string | Acer | The search term to get recommendations for |
200 - OK
400 - Bad Request - Missing parameter
/recommendationcontexts/{RecommendationContextKey}/topsellerrecommendations
This operation returns a list of recommended global top-selling products. This requires a configured recommendation service. The result list strongly depends on the configuration of the recommendation engine and on the back office preferences of the channel (Preferences | Recommendation Engines). If the request type TopsellerRecommendationRequest is not enabled, an empty list is returned.
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.TopsellerRequestRecommendationsListResource.getProductRecommendations()
Location | Name | Format | Default | Example | Description |
---|---|---|---|---|---|
in path | RecommendationContextKey | string | ExampleKey | Required | The key or UUID to resolve a single item |
200 - OK
/recommendationcontexts/{RecommendationContextKey}/userrecommendations
This operation returns a list of recommended products for the assigned user. This requires a configured recommendation service. The assignment of a user to the recommendation context must be done separately (see description of POST /recommendationcontexts/{RecommendationContextKey}/events - UserRecommendationEvent). If no user is assigned to the recommendation context, the delivered recommendations are of a general nature and not user-specific. The result list strongly depends on the configuration of the recommendation engine and on the back office preferences of the channel (Peferences | Recommendation Engines). If the request type UserRecommendationRequest is not enabled, an empty list is returned.
public jakarta.ws.rs.core.Response com.intershop.component.recommendation.capi.rest.resource.UserRequestRecommendationsListResource.getProductRecommendations()
Location | Name | Format | Default | Example | Description |
---|---|---|---|---|---|
in path | RecommendationContextKey | string | ExampleKey | Required | The key or UUID to resolve a single item |
200 - OK
Link
ResourceAttribute
objects. The list of attributesResourceAttribute
: An attributeResourceAttribute
about
alternate
appendix
archives
author
bookmark
canonical
chapter
collection
contents
copyright
create-form
current
describedby
describes
disclosure
duplicate
edit
edit-form
edit-media
enclosure
first
glossary
help
hosts
hub
icon
index
item
last
latest-version
license
lrdd
monitor
monitor-group
next
next-archive
nofollow
noreferrer
payment
predecessor-version
prefetch
prev
preview
previous
prev-archive
privacy-policy
profile
related
replies
search
section
self
service
start
stylesheet
subsection
successor-version
tag
terms-of-service
type
up
version-history
via
working-copy
working-copy-of
ResourceAttribute
object. An attributeResourceAttribute
int32
int32
int32
AbstractResourceObject
objects. The list of elementsAbstractResourceObject
: The list of elementsstring
literals. The keys to sort for