カテゴリーの一覧
GET /categories
システムに設定されたカテゴリーの一覧を取得するには、/api/categoriesに対してGETを送信します。
リクエスト:ヘッダー
Name
Value
Content-Type
application/json
Authorization
Basic <認証情報>
PATH パラメータ
Name
Type
説明
デフォルト値
page
integer
ページ番号
1
items_per_page
integer
1ページあたりの表示数
10
レスポンス
{
"categories": [
{
"category_id": "242",
"parent_id": "241",
"id_path": "241/242",
"category": "Blu-rayソフト",
"position": "10",
"status": "A",
"product_count": "5",
"company_id": "1",
"seo_name": "blu-ray",
"seo_path": "241"
},
{
"category_id": "235",
"parent_id": "234",
"id_path": "166/234/235",
"category": "iPhone",
"position": "10",
"status": "A",
"product_count": "3",
"company_id": "1",
"seo_name": "iphone",
"seo_path": "166/234"
},
{
"category_id": "212",
"parent_id": "211",
"id_path": "203/211/212",
"category": "ゴルフクラブ",
"position": "10",
"status": "A",
"product_count": "4",
"company_id": "1",
"seo_name": "category-212",
"seo_path": "203/211"
}
],
"params": {
"category_id": 0,
"visible": false,
"current_category_id": 0,
"simple": false,
"plain": true,
"limit": 0,
"item_ids": "",
"group_by_level": false,
"get_images": false,
"category_delimiter": "/",
"get_frontend_urls": false,
"max_nesting_level": null,
"get_company_name": false,
"items_per_page": 10,
"page": 1,
"sort_order": "asc",
"sort_by": "position",
"sort_order_rev": "desc",
"total_items": "83"
}
}{}最終更新