58 lines
1.1 KiB
JSON
58 lines
1.1 KiB
JSON
{
|
|
"Title": "Fields",
|
|
"Description": "CRM input field definitions",
|
|
"Package": "crm",
|
|
"Interface": "Field",
|
|
"Struct": [
|
|
{
|
|
"fields": [
|
|
{
|
|
"db": "field_name",
|
|
"name": "Name",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"db": "field_type",
|
|
"name": "Type",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"db": "field_template",
|
|
"name": "Template",
|
|
"omitempty": true,
|
|
"type": "string"
|
|
}
|
|
],
|
|
"name": "Field"
|
|
}
|
|
],
|
|
"Parameters": null,
|
|
"Protocol": "",
|
|
"Authentication": [],
|
|
"Path": "/field",
|
|
"APIs": [
|
|
{
|
|
"Name": "list",
|
|
"Method": "GET",
|
|
"Title": "List available fields",
|
|
"Path": "/",
|
|
"Parameters": null
|
|
},
|
|
{
|
|
"Name": "type",
|
|
"Method": "GET",
|
|
"Title": "Get field details",
|
|
"Path": "/{typeID}",
|
|
"Parameters": {
|
|
"path": [
|
|
{
|
|
"name": "typeID",
|
|
"required": true,
|
|
"title": "Type ID",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |