Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save llirikkcoder/414563e50c2633ef928b8ff6b78ebe7f to your computer and use it in GitHub Desktop.
Save llirikkcoder/414563e50c2633ef928b8ff6b78ebe7f to your computer and use it in GitHub Desktop.
getProductDetailById with slug
чтобы вернуть:
{
"success": true,
"msg": "Product List",
"data": [
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
"marginPrice": 0,
"marginPercent": 0,
"discount": 0,
"categoryId": 1,
"subCategoryId": 10,
"innerCategoryId": 17,
"productTypeId": 90,
"slug": "derek-rose-men-s-bathrobe-triton-10-terry-cotton-navy-1712347323273",
"description": "Our Triton bathrobe is a customer favourite, it features a classic shawl collar and two side pockets for practicality while around the house. It`s fastened with a fabric tie belt for the perfect fit. A cut back yarn on the outside gives it the soft velour finish, with a rich and lustrous appearance, whilst the looped `towelling` yarns inside are designed to maximise absorption of water. You`ll be dry and comfortable in no time. To make it truly special, we can personalise your bathrobe with initials or a motif. Read more about our personalised services here. The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium. Click here for our full range of Men’s Dressing Gowns.",
"composition": "Pure Cotton",
"highlights": null,
"wearing": "The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium.",
"washingInstruction": " Wash at 30°C, Wash with similar colours, Wash inside out, Do not bleach, Reshape whilst damp, Cool tumble dry, Do not iron, Do not dry clean",
"productQuantity": 600,
"colorId": 1,
"color": "Navy",
"colorCode": "#000000",
"colorProductId": null,
"isSizeAvailable": 1,
"image": [
{
"name": "6577545079746_1.jpg"
},
{
"name": "6577545079746_2.jpg"
},
{
"name": "6577545079746_3.jpg"
},
{
"name": "6577545079746_4.jpg"
},
{
"name": "6577545079746_5.jpg"
},
{
"name": "6577545079746_6.jpg"
}
],
"brandName": "Derek-Rose",
"categoryName": "Men",
"productId": 2,
"subCategoryName": "Clothing",
"productTypeName": "Pajamas",
"sizes": [
{
"id": 1,
"quantity": 100,
"sizeName": "XS",
"onSizePrice": 0
},
{
"id": 2,
"quantity": 100,
"sizeName": "S",
"onSizePrice": 0
},
{
"id": 3,
"quantity": 100,
"sizeName": "M",
"onSizePrice": 0
},
{
"id": 4,
"quantity": 100,
"sizeName": "L",
"onSizePrice": 0
},
{
"id": 5,
"quantity": 100,
"sizeName": "XL",
"onSizePrice": 0
},
{
"id": 6,
"quantity": 100,
"sizeName": "XXL",
"onSizePrice": 0
}
],
"isAddToCartAdded": 1,
"isWishlistadded": 1
},
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
"marginPrice": 0,
"marginPercent": 0,
"discount": 0,
"categoryId": 1,
"subCategoryId": 10,
"innerCategoryId": 17,
"productTypeId": 90,
"slug": "derek-rose-men-s-bathrobe-triton-10-terry-cotton-navy-1712347323273",
"description": "Our Triton bathrobe is a customer favourite, it features a classic shawl collar and two side pockets for practicality while around the house. It`s fastened with a fabric tie belt for the perfect fit. A cut back yarn on the outside gives it the soft velour finish, with a rich and lustrous appearance, whilst the looped `towelling` yarns inside are designed to maximise absorption of water. You`ll be dry and comfortable in no time. To make it truly special, we can personalise your bathrobe with initials or a motif. Read more about our personalised services here. The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium. Click here for our full range of Men’s Dressing Gowns.",
"composition": "Pure Cotton",
"highlights": null,
"wearing": "The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium.",
"washingInstruction": " Wash at 30°C, Wash with similar colours, Wash inside out, Do not bleach, Reshape whilst damp, Cool tumble dry, Do not iron, Do not dry clean",
"productQuantity": 600,
"colorId": 1,
"color": "Navy",
"colorCode": "#000000",
"colorProductId": null,
"isSizeAvailable": 1,
"image": [
{
"name": "6577545079746_1.jpg"
},
{
"name": "6577545079746_2.jpg"
},
{
"name": "6577545079746_3.jpg"
},
{
"name": "6577545079746_4.jpg"
},
{
"name": "6577545079746_5.jpg"
},
{
"name": "6577545079746_6.jpg"
}
],
"brandName": "Derek-Rose",
"categoryName": "Men",
"productId": 2,
"subCategoryName": "Clothing",
"productTypeName": "Pajamas",
"sizes": [
{
"id": 1,
"quantity": 100,
"sizeName": "XS",
"onSizePrice": 0
},
{
"id": 2,
"quantity": 100,
"sizeName": "S",
"onSizePrice": 0
},
{
"id": 3,
"quantity": 100,
"sizeName": "M",
"onSizePrice": 0
},
{
"id": 4,
"quantity": 100,
"sizeName": "L",
"onSizePrice": 0
},
{
"id": 5,
"quantity": 100,
"sizeName": "XL",
"onSizePrice": 0
},
{
"id": 6,
"quantity": 100,
"sizeName": "XXL",
"onSizePrice": 0
}
],
"isAddToCartAdded": 1,
"isWishlistadded": 1
},
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
"marginPrice": 0,
"marginPercent": 0,
"discount": 0,
"categoryId": 1,
"subCategoryId": 10,
"innerCategoryId": 17,
"productTypeId": 90,
"slug": "derek-rose-men-s-bathrobe-triton-10-terry-cotton-navy-1712347323273",
"description": "Our Triton bathrobe is a customer favourite, it features a classic shawl collar and two side pockets for practicality while around the house. It`s fastened with a fabric tie belt for the perfect fit. A cut back yarn on the outside gives it the soft velour finish, with a rich and lustrous appearance, whilst the looped `towelling` yarns inside are designed to maximise absorption of water. You`ll be dry and comfortable in no time. To make it truly special, we can personalise your bathrobe with initials or a motif. Read more about our personalised services here. The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium. Click here for our full range of Men’s Dressing Gowns.",
"composition": "Pure Cotton",
"highlights": null,
"wearing": "The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium.",
"washingInstruction": " Wash at 30°C, Wash with similar colours, Wash inside out, Do not bleach, Reshape whilst damp, Cool tumble dry, Do not iron, Do not dry clean",
"productQuantity": 600,
"colorId": 1,
"color": "Navy",
"colorCode": "#000000",
"colorProductId": null,
"isSizeAvailable": 1,
"image": [
{
"name": "6577545079746_1.jpg"
},
{
"name": "6577545079746_2.jpg"
},
{
"name": "6577545079746_3.jpg"
},
{
"name": "6577545079746_4.jpg"
},
{
"name": "6577545079746_5.jpg"
},
{
"name": "6577545079746_6.jpg"
}
],
"brandName": "Derek-Rose",
"categoryName": "Men",
"productId": 2,
"subCategoryName": "Clothing",
"productTypeName": "Pajamas",
"sizes": [
{
"id": 1,
"quantity": 100,
"sizeName": "XS",
"onSizePrice": 0
},
{
"id": 2,
"quantity": 100,
"sizeName": "S",
"onSizePrice": 0
},
{
"id": 3,
"quantity": 100,
"sizeName": "M",
"onSizePrice": 0
},
{
"id": 4,
"quantity": 100,
"sizeName": "L",
"onSizePrice": 0
},
{
"id": 5,
"quantity": 100,
"sizeName": "XL",
"onSizePrice": 0
},
{
"id": 6,
"quantity": 100,
"sizeName": "XXL",
"onSizePrice": 0
}
],
"isAddToCartAdded": 1,
"isWishlistadded": 1
},
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
"marginPrice": 0,
"marginPercent": 0,
"discount": 0,
"categoryId": 1,
"subCategoryId": 10,
"innerCategoryId": 17,
"productTypeId": 90,
"slug": "derek-rose-men-s-bathrobe-triton-10-terry-cotton-navy-1712347323273",
"description": "Our Triton bathrobe is a customer favourite, it features a classic shawl collar and two side pockets for practicality while around the house. It`s fastened with a fabric tie belt for the perfect fit. A cut back yarn on the outside gives it the soft velour finish, with a rich and lustrous appearance, whilst the looped `towelling` yarns inside are designed to maximise absorption of water. You`ll be dry and comfortable in no time. To make it truly special, we can personalise your bathrobe with initials or a motif. Read more about our personalised services here. The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium. Click here for our full range of Men’s Dressing Gowns.",
"composition": "Pure Cotton",
"highlights": null,
"wearing": "The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium.",
"washingInstruction": " Wash at 30°C, Wash with similar colours, Wash inside out, Do not bleach, Reshape whilst damp, Cool tumble dry, Do not iron, Do not dry clean",
"productQuantity": 600,
"colorId": 1,
"color": "Navy",
"colorCode": "#000000",
"colorProductId": null,
"isSizeAvailable": 1,
"image": [
{
"name": "6577545079746_1.jpg"
},
{
"name": "6577545079746_2.jpg"
},
{
"name": "6577545079746_3.jpg"
},
{
"name": "6577545079746_4.jpg"
},
{
"name": "6577545079746_5.jpg"
},
{
"name": "6577545079746_6.jpg"
}
],
"brandName": "Derek-Rose",
"categoryName": "Men",
"productId": 2,
"subCategoryName": "Clothing",
"productTypeName": "Pajamas",
"sizes": [
{
"id": 1,
"quantity": 100,
"sizeName": "XS",
"onSizePrice": 0
},
{
"id": 2,
"quantity": 100,
"sizeName": "S",
"onSizePrice": 0
},
{
"id": 3,
"quantity": 100,
"sizeName": "M",
"onSizePrice": 0
},
{
"id": 4,
"quantity": 100,
"sizeName": "L",
"onSizePrice": 0
},
{
"id": 5,
"quantity": 100,
"sizeName": "XL",
"onSizePrice": 0
},
{
"id": 6,
"quantity": 100,
"sizeName": "XXL",
"onSizePrice": 0
}
],
"isAddToCartAdded": 1,
"isWishlistadded": 1
},
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
"marginPrice": 0,
"marginPercent": 0,
"discount": 0,
"categoryId": 1,
"subCategoryId": 10,
"innerCategoryId": 17,
"productTypeId": 90,
"slug": "derek-rose-men-s-bathrobe-triton-10-terry-cotton-navy-1712347323273",
"description": "Our Triton bathrobe is a customer favourite, it features a classic shawl collar and two side pockets for practicality while around the house. It`s fastened with a fabric tie belt for the perfect fit. A cut back yarn on the outside gives it the soft velour finish, with a rich and lustrous appearance, whilst the looped `towelling` yarns inside are designed to maximise absorption of water. You`ll be dry and comfortable in no time. To make it truly special, we can personalise your bathrobe with initials or a motif. Read more about our personalised services here. The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium. Click here for our full range of Men’s Dressing Gowns.",
"composition": "Pure Cotton",
"highlights": null,
"wearing": "The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium.",
"washingInstruction": " Wash at 30°C, Wash with similar colours, Wash inside out, Do not bleach, Reshape whilst damp, Cool tumble dry, Do not iron, Do not dry clean",
"productQuantity": 600,
"colorId": 1,
"color": "Navy",
"colorCode": "#000000",
"colorProductId": null,
"isSizeAvailable": 1,
"image": [
{
"name": "6577545079746_1.jpg"
},
{
"name": "6577545079746_2.jpg"
},
{
"name": "6577545079746_3.jpg"
},
{
"name": "6577545079746_4.jpg"
},
{
"name": "6577545079746_5.jpg"
},
{
"name": "6577545079746_6.jpg"
}
],
"brandName": "Derek-Rose",
"categoryName": "Men",
"productId": 2,
"subCategoryName": "Clothing",
"productTypeName": "Pajamas",
"sizes": [
{
"id": 1,
"quantity": 100,
"sizeName": "XS",
"onSizePrice": 0
},
{
"id": 2,
"quantity": 100,
"sizeName": "S",
"onSizePrice": 0
},
{
"id": 3,
"quantity": 100,
"sizeName": "M",
"onSizePrice": 0
},
{
"id": 4,
"quantity": 100,
"sizeName": "L",
"onSizePrice": 0
},
{
"id": 5,
"quantity": 100,
"sizeName": "XL",
"onSizePrice": 0
},
{
"id": 6,
"quantity": 100,
"sizeName": "XXL",
"onSizePrice": 0
}
],
"isAddToCartAdded": 1,
"isWishlistadded": 1
},
{
"id": 2,
"brandId": 1,
"productName": "Men`s Bathrobe Triton 10 Terry Cotton Navy",
"price": 160,
"marginPrice": 0,
"marginPercent": 0,
"discount": 0,
"categoryId": 1,
"subCategoryId": 10,
"innerCategoryId": 17,
"productTypeId": 90,
"slug": "derek-rose-men-s-bathrobe-triton-10-terry-cotton-navy-1712347323273",
"description": "Our Triton bathrobe is a customer favourite, it features a classic shawl collar and two side pockets for practicality while around the house. It`s fastened with a fabric tie belt for the perfect fit. A cut back yarn on the outside gives it the soft velour finish, with a rich and lustrous appearance, whilst the looped `towelling` yarns inside are designed to maximise absorption of water. You`ll be dry and comfortable in no time. To make it truly special, we can personalise your bathrobe with initials or a motif. Read more about our personalised services here. The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium. Click here for our full range of Men’s Dressing Gowns.",
"composition": "Pure Cotton",
"highlights": null,
"wearing": "The model is 6`2\" / 186cm tall with waist size 30” / 76cm, chest size 39” / 99cm. He wears a Medium.",
"washingInstruction": " Wash at 30°C, Wash with similar colours, Wash inside out, Do not bleach, Reshape whilst damp, Cool tumble dry, Do not iron, Do not dry clean",
"productQuantity": 600,
"colorId": 1,
"color": "Navy",
"colorCode": "#000000",
"colorProductId": null,
"isSizeAvailable": 1,
"image": [
{
"name": "6577545079746_1.jpg"
},
{
"name": "6577545079746_2.jpg"
},
{
"name": "6577545079746_3.jpg"
},
{
"name": "6577545079746_4.jpg"
},
{
"name": "6577545079746_5.jpg"
},
{
"name": "6577545079746_6.jpg"
}
],
"brandName": "Derek-Rose",
"categoryName": "Men",
"productId": 2,
"subCategoryName": "Clothing",
"productTypeName": "Pajamas",
"sizes": [
{
"id": 1,
"quantity": 100,
"sizeName": "XS",
"onSizePrice": 0
},
{
"id": 2,
"quantity": 100,
"sizeName": "S",
"onSizePrice": 0
},
{
"id": 3,
"quantity": 100,
"sizeName": "M",
"onSizePrice": 0
},
{
"id": 4,
"quantity": 100,
"sizeName": "L",
"onSizePrice": 0
},
{
"id": 5,
"quantity": 100,
"sizeName": "XL",
"onSizePrice": 0
},
{
"id": 6,
"quantity": 100,
"sizeName": "XXL",
"onSizePrice": 0
}
],
"isAddToCartAdded": 1,
"isWishlistadded": 1
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment