カテゴリー取得
GET /categories/{category_id}
GET
/categories/{category_id}
カテゴリー情報を取得します
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” category_id
required
string
カテゴリーID
Query Parameters
Section titled “Query Parameters ” with_children
string
子カテゴリー情報を含むかを指定します。
all
: 全て含むnone
: 含めない(キーchildren
を含めない)
Example
none
Responses
Section titled “ Responses ”OK
CategoryParent
object
id
required
カテゴリーID
string
name
カテゴリー名
string
abbr
略称
string
sortNo
ソート番号
integer
parentId
親カテゴリーID
string
createdIn
作成元サービス
string
children
子カテゴリーリスト
Array<object>
CategoryChildカテゴリー情報
object
id
required
カテゴリーID
string
name
カテゴリー名
string
abbr
略称
string
sortNo
ソート番号
integer
parentId
親カテゴリーID
string
createdIn
作成元サービス
string
Examples
{ "id": "2", "name": "デザート", "abbr": "デザート", "sortNo": 1, "parentId": null, "createdIn": "waiter", "children": [ { "id": "12", "name": "季節の彩ケーキ特集", "abbr": "季節ケーキ", "sortNo": 2, "parentId": "2", "createdIn": "waiter" } ]}
{ "id": "2", "name": "デザート", "abbr": "デザート", "sortNo": 1, "parentId": null, "createdIn": "waiter"}
Bad Request
- リクエストパラメーターが不正
- 不正な値が指定された場合
object
title
required
string
type
required
string
status
integer
detail
string
指定したデータが存在しない場合
object
title
required
string
type
required
string
status
integer
detail
string