Get Recommended Models
post
/rest/v7/prodFamVarName.prodLineVarName.modelVarName/_recmdModels/actions/getRecmdModels
This action retrieves the recommended Models of the configuration. This action does not run recommended items rules.
Request
Supported Media Types
- application/json
Root Schema : _recmdModels-getRecmdModelsRequest
Type:
Show Source
object-
cacheInstanceId:
string
Title:
Cache Instance IdThe unique identifier for the entry of configuration data stored in the cache. This is obtained from actions that launch configuration and passed along in subsequent actions.
Response
Supported Media Types
- application/json
Default Response
Root Schema : _recmdModels-getRecmdModelsResponse
Type:
Show Source
object-
cacheInstanceId(optional):
string
Title:
Cache Instance IdThe unique identifier for the entry of configuration data stored in the cache. This is obtained from actions that launch configuration and passed along in subsequent actions. -
items(optional):
array items
Nested Schema : model
Type:
Show Source
object-
comment(optional):
string
Title:
CommentModel's comment. -
description(optional):
string
Title:
DescriptionDescription of the model. -
id(optional):
string
Title:
Model IdentifierIt uniquely idenitfies the model. -
modelName(optional):
string
Title:
Model NameModel display name. -
modelVariableName(optional):
string
Title:
Model Variable NameUniquely identifies the model. -
price(optional):
object Price
Title:
PriceModel's price. -
quantity(optional):
integer
Title:
QuantityQuantity of model in the configuration. -
selected(optional):
string
Title:
SelectionIt represents selection of the item. Selection can be 'true', 'false' or 'missing'.
Examples
The following example shows how to retrieve the recommended Models of a configuration by submitting a POST request to the REST resource using cURL.
curl -X POST -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json" https://sitename.oracle.com/rest/v7/configvarioTablets.tablets.customTablet/_recmdModels/actions/getRecmdModels
Request Body Sample
{
"cacheInstanceId": "gsg21bMZ5kpGUWxDIZeGWQCLKbaad33Un1X8huVuDm0K3gAKMeXPbzeQcFsFBAzJ"
}
Response Body Sample
The following example shows the contents of the response body in JSON format:
{
"cacheInstanceId": "gsg21bMZ5kpGUWxDIZeGWQCLKbaad33Un1X8huVuDm0K3gAKMeXPbzeQcFsFBAzJ",
"items": [{
"id": "model~samsungPhablet~recommendedModelPhablet",
"selected": "true",
"modelName": "Samsung Phablet",
"comment": "System recommended item",
"price": {
"value": "300",
"currency": "USD"
},
"modelVariableName": "samsungPhablet",
"quantity": 1,
"description": "Samsung phablet"
}, {
"id": "model~tabletSupportServices~recommendedModelTabletSupportServices",
"selected": "true",
"modelName": "Tablet Support Services",
"comment": "System recommended item",
"price": {
"value": "200",
"currency": "USD"
},
"modelVariableName": "tabletSupportServices",
"quantity": 1,
"description": "Tablet Support Services"
}
]
}