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