{ "components": { "schemas": { "price": { "description": "Product price in USD", "properties": { "was": { "type": "string", "description": "formatted price in USD" }, "now": { "type": "string", "description": "formatted price in USD" }, "onSale": { "type": "boolean", "description": "true if now price is < was price. Used to", "default": "false" } }, "required": [ "was", "now", "onSale" ], "type": "object" }, "recommendation": { "properties": { "productId": { "type": "string" }, "productName": { "type": "string" }, "productUrl": { "type": "string" }, "productImageUrl": { "type": "string" }, "brandName": { "type": "string" }, "price": { "$ref": "#/components/schemas/price" }, "rating": { "type": "number", "format": "double", "description": "customer review's rating" }, "numReviews": { "type": "integer", "format": "int64", "description": "number of customers that reviewed the product" } }, "required": [ "productId", "productName", "productUrl", "productImageUrl", "brandName", "price" ], "type": "object" }, "similarProductRecommendation": { "properties": { "recommendations": { "items": { "$ref": "#/components/schemas/recommendation" }, "type": "array" } }, "required": [ "recommendations" ], "type": "object" }, "similarProductContext": { "description": "Possible values: pdp.", "enum": [ "pdp" ], "type": "string" } } }, "info": { "contact": { "name": "Personalization", "url": "http://github.com/saksdirect", "email": "alessandro.marrella@hbc.com" }, "description": "Product recommendations for lord and taylor mobile. To be consumed by Skava", "license": {}, "termsOfService": "", "title": "api-product-recommendations-lat", "version": "1.1.0" }, "openapi": "3.0.2", "paths": { "/similarProductRecommendations/:context/:productId": { "get": { "description": "Gets similar products recommendations inferring the org from the domain referrer", "operationId": "get--similarProductRecommendations-context-productId", "parameters": [ { "deprecated": false, "example": "pdp", "in": "path", "required": true, "schema": { "$ref": "#/components/schemas/similarProductContext" }, "description": "Context in which to show similar products, eg: PDP", "name": "context" }, { "deprecated": false, "in": "path", "required": true, "schema": { "type": "string" }, "description": "Product code for which we want to return similar products", "name": "productId" }, { "deprecated": false, "in": "query", "required": false, "schema": { "type": "string" }, "description": "plain text color", "name": "color" }, { "deprecated": false, "example": "10", "in": "query", "required": true, "schema": { "type": "integer" }, "description": "Limit on number of recommendations to be returned", "name": "limit" }, { "deprecated": false, "in": "header", "required": true, "schema": { "type": "string" }, "description": "The service will use the content of this header to infer the org", "name": "Referer" }, { "deprecated": false, "in": "query", "required": false, "schema": { "type": "string" }, "description": "Name of the abTest being run (if any)", "name": "abTestName" }, { "deprecated": false, "in": "query", "required": false, "schema": { "type": "string" }, "description": "Variant in the abTest (if any)", "name": "abTestVariant" } ], "responses": { "200": { "description": "com.hbc.api.product.recommendations.lat.v1.models.similarProductRecommendation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/similarProductRecommendation" } } }, "headers": {} } }, "tags": [ "similarProductRecommendation" ] } } }, "servers": [ { "url": "https://m.lordandtaylor.com/api-product-suggestions" } ] }