|
|
PUT
说明
Pgae定义
字段名 |
类型 |
是否必须 |
page_id |
string |
N |
sc_def_id |
string |
Y |
sc_id |
string |
Y |
title |
string |
Y |
desc |
string |
Y |
widgets |
array |
Y |
page_view |
string |
Y |
shop_id |
string |
Y |
mate |
json |
Y |
Widget定义
字段名 |
类型 |
是否必须 |
wgt_id |
string |
N |
wgt_def_id |
string |
Y |
position |
string |
Y |
container |
string |
Y |
editable |
int |
N |
data |
json |
Y |
错误代码列表
|
|
|
POST
说明
Pgae定义
字段名 |
类型 |
是否必须 |
page_id |
string |
N |
sc_def_id |
string |
Y |
sc_id |
string |
Y |
title |
string |
Y |
desc |
string |
Y |
widgets |
array |
Y |
page_view |
string |
Y |
shop_id |
string |
Y |
mate |
json |
Y |
Widget定义
字段名 |
类型 |
是否必须 |
wgt_id |
string |
N |
wgt_def_id |
string |
Y |
position |
string |
Y |
container |
string |
Y |
editable |
int |
N |
data |
json |
Y |
错误代码列表
|
DELETE
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
GET
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
|
GET
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
测试用例
curl -G http://127.0.0.1:9060/def/showcase \
-d 'data={"filter":{"case_type":"new_year"}}'
返回结果
{
"status": "success",
"data": [
{
"id": "PHTgU586",
"name": "贺岁版",
"tpl_id": "/oysl/tpl",
"tpl_pic": "/oysl/img/new_year",
"pages": {
"index": {
"widgets": [
"product",
"img"
]
},
"pre_widgets": [
{
"id": "nav_bar",
"position": 1
}
]
},
"case_type": "new_year",
"updated_at": 1419322046
}
]
}
错误代码列表
|
|
|
PUT
说明
Showcase定义
字段名 |
类型 |
是否必须 |
sc_id |
string |
N |
sc_def_id |
string |
Y |
shop_id |
string |
Y |
case_type |
string |
Y |
title |
string |
Y |
desc |
string |
Y |
pages |
array |
Y |
Pgae定义
字段名 |
类型 |
是否必须 |
page_id |
string |
N |
sc_def_id |
string |
Y |
sc_id |
string |
Y |
title |
string |
Y |
desc |
string |
Y |
widgets |
array |
Y |
page_view |
string |
Y |
shop_id |
string |
Y |
mate |
json |
Y |
Widget定义
字段名 |
类型 |
是否必须 |
wgt_id |
string |
N |
wgt_def_id |
string |
Y |
position |
string |
Y |
container |
string |
Y |
editable |
int |
N |
data |
json |
Y |
错误代码列表
|
POST
说明
Showcase定义
字段名 |
类型 |
是否必须 |
sc_id |
string |
N |
sc_def_id |
string |
Y |
shop_id |
string |
Y |
case_type |
string |
Y |
title |
string |
Y |
desc |
string |
Y |
pages |
array |
Y |
Pgae定义
字段名 |
类型 |
是否必须 |
page_id |
string |
N |
sc_def_id |
string |
Y |
sc_id |
string |
Y |
title |
string |
Y |
desc |
string |
Y |
widgets |
array |
Y |
page_view |
string |
Y |
shop_id |
string |
Y |
mate |
json |
Y |
Widget定义
字段名 |
类型 |
是否必须 |
wgt_id |
string |
N |
wgt_def_id |
string |
Y |
position |
string |
Y |
container |
string |
Y |
editable |
int |
N |
data |
json |
Y |
错误代码列表
|
DELETE
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
string |
N |
limit |
string |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
GET
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
|
GET
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
|
|
PUT
说明
Widget_group定义
字段名 |
类型 |
是否必须 |
shop_id |
string |
Y |
wgt_group_id |
string |
N |
name |
string |
Y |
type |
string |
Y |
widgets |
array |
Y |
Widget定义
字段名 |
类型 |
是否必须 |
wgt_id |
string |
N |
wgt_def_id |
string |
Y |
position |
string |
Y |
container |
string |
Y |
editable |
int |
N |
data |
json |
Y |
错误代码列表
|
POST
说明
Widget_group定义
字段名 |
类型 |
是否必须 |
shop_id |
string |
Y |
wgt_group_id |
string |
N |
name |
string |
Y |
type |
string |
Y |
widgets |
array |
Y |
Widget定义
字段名 |
类型 |
是否必须 |
wgt_id |
string |
N |
wgt_def_id |
string |
Y |
position |
string |
Y |
container |
string |
Y |
editable |
int |
N |
data |
json |
Y |
错误代码列表
|
DELETE
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
GET
说明
查询字段定义
字段名 |
类型 |
是否必须 |
filter |
json(键值对) |
N |
intervals |
array |
N |
sorts |
array(string) |
N |
offset |
int |
N |
limit |
int |
N |
区间定义
字段名 |
类型 |
是否必须 |
item |
string |
Y |
upper |
atom_type |
N |
lower |
atom_type |
N |
错误代码列表
|
|
|