=====表单接口=====
\\
====JSON格式====
^名称 ^类型 ^只读 ^必填 ^注释^
|fId |int |是 |否 |表单ID,系统自动生成 |
|url |varchar |是 |否 |该表单的资源url|
|name |varchar |否 |是 |表单名称|
|key |varchar |否 |否 |表单的唯一标识,如果创建表单时不传该值,系统会自动分配,一旦创建成功后,就无法修改。|
|descript |varchar |否 |否 |表单描述|
====JSON示例====
{
"fId": 91739,
"url": "https://www.bangwo8.com/api/v1/forms/91739.json",
"subject": "合同表",
"key": "contract_table",
"descript": "这里是表单的描述"
}
====获取表单列表====
GET /api/v1/forms.json
//说明:默认按编码升序返回//
**调用者权限**
管理员
**调用示例**
curl https://www.bangwo8.com/api/v1/forms.json \
-v -u {account}:{password}
**返回值示例**
Status: 200 OK
{
"forms": [
{
"fId": "8741",
"subject": "合同表",
"key": "contract_table",
"descript": "存储客户的合同"
},
{
"fId": "8742",
"subject": "资产表",
"key": "asset_table",
"descript": "存储客户购买的产品"
}
...
]
}