Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created May 6, 2018 07:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sivabudh/5b9c938b6cc42340dacb9989ad526b6f to your computer and use it in GitHub Desktop.
/api/categories/id/shallow-get/
{
"id": 9713,
"sequence": 1,
"has_children": true,
"name": "LIXIL",
"header_image": null,
"content_image": "http://0.0.0.0:8000/media/foto/content_image/1_LIXIL_content_megqk8u.jpg",
"popup_image": null,
"product_view_type": 1,
"product_selection_type": 1,
"square_meter_required": false,
"attribute": null,
"products": [],
"modifications": [],
"children": [{ <--- New field
"id": 9716,
"sequence": 2,
"has_children": false,
"name": "カラー",
"header_image": null,
"content_image": null,
"popup_image": null,
"product_view_type": 2,
"product_selection_type": 1,
"square_meter_required": false,
"attribute": {
"x_axis": 308,
"y_axis": 324
},
"products": [{
"id": 22701,
"name": "ピュアホワイト",
"cost": 0,
"price": 0,
"catalog_price": 0,
"qty": 1,
"unit": "",
"content_image": "http://0.0.0.0:8000/media/products/content_image/504_content_kqkBibA.jpg",
"popup_image": "http://0.0.0.0:8000/media/products/popup_image/504_popup_2EL85F2.jpg",
"category": 9716,
"type": 2,
"default_selection": false,
"detail": {
"detail": null
},
"attribute": {
"maker": "株式会社LIXIL",
"supplier": "株式会社平田タイル"
},
"unselectable_products": null
},
{
"id": 22702,
"name": "オフホワイト",
"cost": 0,
"price": 0,
"catalog_price": 0,
"qty": 1,
"unit": "",
"content_image": "http://0.0.0.0:8000/media/products/content_image/505_content_6oTLUez.jpg",
"popup_image": "http://0.0.0.0:8000/media/products/popup_image/505_popup_9jkNbec.jpg",
"category": 9716,
"type": 2,
"default_selection": false,
"detail": {
"detail": null
},
"attribute": {
"maker": "株式会社LIXIL",
"supplier": "株式会社平田タイル"
},
"unselectable_products": null
},
{
"id": 22703,
"name": "ピンク",
"cost": 0,
"price": 0,
"catalog_price": 0,
"qty": 1,
"unit": "",
"content_image": "http://0.0.0.0:8000/media/products/content_image/506_content_JJo1lkO.jpg",
"popup_image": "http://0.0.0.0:8000/media/products/popup_image/506_popup_85o3Fal.jpg",
"category": 9716,
"type": 2,
"default_selection": false,
"detail": {
"detail": null
},
"attribute": {
"maker": "株式会社LIXIL",
"supplier": "株式会社平田タイル"
},
"unselectable_products": null
},
{
"id": 22704,
"name": "ブルーグレー",
"cost": 0,
"price": 0,
"catalog_price": 0,
"qty": 1,
"unit": "",
"content_image": "http://0.0.0.0:8000/media/products/content_image/507_content_FHe4XNe.jpg",
"popup_image": "http://0.0.0.0:8000/media/products/popup_image/507_popup_bhcVAgW.jpg",
"category": 9716,
"type": 2,
"default_selection": false,
"detail": {
"detail": "納期2週間"
},
"attribute": {
"maker": "株式会社LIXIL",
"supplier": "株式会社平田タイル"
},
"unselectable_products": null
}
],
"modifications": []
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment