{"action":"opened","issue":{"url":"https://api.github.com/repos/puttiam/Fruitrouge-API/issues/21","labels_url":"https://api.github.com/repos/puttiam/Fruitrouge-API/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/puttiam/Fruitrouge-API/issues/21/comments","events_url":"https://api.github.com/repos/puttiam/Fruitrouge-API/issues/21/events","html_url":"https://github.com/puttiam/Fruitrouge-API/issues/21","id":110844887,"number":21,"title":"saleProducts - Wrong response","user":{"login":"puttiam","id":6847902,"avatar_url":"https://avatars.githubusercontent.com/u/6847902?v=3","gravatar_id":"","url":"https://api.github.com/users/puttiam","html_url":"https://github.com/puttiam","followers_url":"https://api.github.com/users/puttiam/followers","following_url":"https://api.github.com/users/puttiam/following{/other_user}","gists_url":"https://api.github.com/users/puttiam/gists{/gist_id}","starred_url":"https://api.github.com/users/puttiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puttiam/subscriptions","organizations_url":"https://api.github.com/users/puttiam/orgs","repos_url":"https://api.github.com/users/puttiam/repos","events_url":"https://api.github.com/users/puttiam/events{/privacy}","received_events_url":"https://api.github.com/users/puttiam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puttiam/Fruitrouge-API/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ggrason","id":5539755,"avatar_url":"https://avatars.githubusercontent.com/u/5539755?v=3","gravatar_id":"","url":"https://api.github.com/users/ggrason","html_url":"https://github.com/ggrason","followers_url":"https://api.github.com/users/ggrason/followers","following_url":"https://api.github.com/users/ggrason/following{/other_user}","gists_url":"https://api.github.com/users/ggrason/gists{/gist_id}","starred_url":"https://api.github.com/users/ggrason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggrason/subscriptions","organizations_url":"https://api.github.com/users/ggrason/orgs","repos_url":"https://api.github.com/users/ggrason/repos","events_url":"https://api.github.com/users/ggrason/events{/privacy}","received_events_url":"https://api.github.com/users/ggrason/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-11T09:18:51Z","updated_at":"2015-10-11T09:18:51Z","closed_at":null,"body":"I get this response for request `{\"idSale\":\"4\",\"brand\":\"l33\",\"offset\":0,\"chunks\":16,\"corners\":0,\"sort\":0}`\r\n```\r\n[\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T6=T48\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429981\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3272/product_402544/catalog_grand.jpg\",\r\n        \"offset\": 0\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T3=T42\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430082\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3440/product_426353/catalog_grand.jpg\",\r\n        \"offset\": 1\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430274\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3645/product_532993/catalog_grand.jpg\",\r\n        \"offset\": 2\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T5=T46\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430088\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3440/product_426360/catalog_grand.jpg\",\r\n        \"offset\": 3\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T42\",\r\n                \"availability\": 3,\r\n                \"model\": \"4429593\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_2857/product_334813/catalog_grand.jpg\",\r\n        \"offset\": 4\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 3,\r\n                \"model\": \"4430357\"\r\n            },\r\n            {\r\n                \"label\": \"T3=T42\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430358\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 2,\r\n                \"model\": \"4430359\"\r\n            },\r\n            {\r\n                \"label\": \"T5=T46\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430360\"\r\n            },\r\n            {\r\n                \"label\": \"T6=T48\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430361\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3926/product_536913/catalog_grand.jpg\",\r\n        \"offset\": 5\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T1=T38\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429955\"\r\n            },\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429956\"\r\n            },\r\n            {\r\n                \"label\": \"T3=T42\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429957\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429958\"\r\n            },\r\n            {\r\n                \"label\": \"T6=T48\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429959\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3272/product_402534/catalog_grand.jpg\",\r\n        \"offset\": 6\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T1=T38\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429950\"\r\n            },\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429951\"\r\n            },\r\n            {\r\n                \"label\": \"T3=T42\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429952\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429953\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3272/product_402529/catalog_grand.jpg\",\r\n        \"offset\": 7\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T1=T38\",\r\n                \"availability\": 4,\r\n                \"model\": \"4429990\"\r\n            },\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429991\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 2,\r\n                \"model\": \"4429992\"\r\n            },\r\n            {\r\n                \"label\": \"T5=T46\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429993\"\r\n            },\r\n            {\r\n                \"label\": \"T6=T48\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429994\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3272/product_402549/catalog_grand.jpg\",\r\n        \"offset\": 8\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T44\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429286\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_2462/product_271428/catalog_grand.jpg\",\r\n        \"offset\": 9\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T1=T38\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430312\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 2,\r\n                \"model\": \"4430313\"\r\n            },\r\n            {\r\n                \"label\": \"T6=T48\",\r\n                \"availability\": 2,\r\n                \"model\": \"4430314\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3926/product_536879/catalog_grand.jpg\",\r\n        \"offset\": 10\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T1=T38\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430117\"\r\n            },\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 2,\r\n                \"model\": \"4430118\"\r\n            },\r\n            {\r\n                \"label\": \"T3=T42\",\r\n                \"availability\": 3,\r\n                \"model\": \"4430119\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 1,\r\n                \"model\": \"4430120\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3440/product_426388/catalog_grand.jpg\",\r\n        \"offset\": 11\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429967\"\r\n            },\r\n            {\r\n                \"label\": \"T4=T44\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429968\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3272/product_402536/catalog_grand.jpg\",\r\n        \"offset\": 12\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T46\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429897\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3192/product_389978/catalog_grand.jpg\",\r\n        \"offset\": 13\r\n    },\r\n    {\r\n        \"id\": \"225812\",\r\n        \"name\": \"Top VIOLETA noir\",\r\n        \"saleId\": \"4\",\r\n        \"description\": \"Top L33 doubl&eacute;. Sans manches. Col V. Fermeture zipp&eacute;e sur le c&ocirc;t&eacute;. Finitions surjets.\",\r\n        \"color\": \"noir\",\r\n        \"composition\": \"50% Coton, 50% Polyester\",\r\n        \"maintenance\": \"Lavage 30 Degr&eacute;s\",\r\n        \"price\": 15.1,\r\n        \"publicPrice\": 40,\r\n        \"idCategory\": \"11189\",\r\n        \"cat\": \"11189\",\r\n        \"coup\": false,\r\n        \"best\": false,\r\n        \"nbImages\": 5,\r\n        \"brand\": \"L33\",\r\n        \"oldCollection\": null,\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T36\",\r\n                \"availability\": 2,\r\n                \"model\": \"3053101\"\r\n            },\r\n            {\r\n                \"label\": \"T40\",\r\n                \"availability\": 3,\r\n                \"model\": \"3053102\"\r\n            },\r\n            {\r\n                \"label\": \"T46\",\r\n                \"availability\": 0,\r\n                \"model\": \"3053103\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_1989/product_191505/catalog_grand.jpg\",\r\n        \"offset\": 14\r\n    },\r\n    {\r\n        \"sizes\": [\r\n            {\r\n                \"label\": \"T2=T40\",\r\n                \"availability\": 1,\r\n                \"model\": \"4429987\"\r\n            },\r\n            {\r\n                \"label\": \"T5=T46\",\r\n                \"availability\": 2,\r\n                \"model\": \"4429988\"\r\n            }\r\n        ],\r\n        \"saleName\": \"OUTLET\",\r\n        \"twentyfour\": \"0\",\r\n        \"src\": \"http://media1.fruitrouge.com/data/sale/sale_3272/product_402547/catalog_grand.jpg\",\r\n        \"offset\": 15\r\n    }\r\n]\r\n```"}}