3
0
Files
corteza/api/crm/spec/field.json
2018-11-25 11:41:46 +01:00

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"
}
]
}
}
]
}