Summary
Search Forms
Description
Search forms with options
Route
POST /formbuilder/forms/search
Roles
admin
apiread
operator
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
options |
object |
yes |
filter, startAt, maxResults, sort, fields, expand |
Copied to Clipboard
{
"options": {
"filter": {
"name": "form_example_1"
},
"startAt": 0,
"maxResults": 10,
"sort": {
"name": 1
},
"fields": [
"name",
"children",
"elements",
"createddBy",
"created",
"lastUpdatedBy",
"lastUpdated"
],
"expand": [
"createdBy",
"lastUpdatedBy"
]
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"options": {
"title": "options",
"type": "object",
"properties": {
"filter": {
"type": "object",
"examples": [
{
"name": "form_example_1"
}
]
},
"startAt": {
"type": "integer",
"minimum": 0,
"examples": [
0
]
},
"maxResults": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"examples": [
10
]
},
"sort": {
"type": "object",
"examples": [
{
"name": 1
}
]
},
"fields": {
"type": "array",
"items": {
"type": "string",
"enum": [
"name",
"children",
"elements",
"createddBy",
"created",
"lastUpdatedBy",
"lastUpdated"
]
},
"examples": [
[
"name",
"children",
"elements",
"createddBy",
"created",
"lastUpdatedBy",
"lastUpdated"
]
],
"uniqueItems": true
},
"expand": {
"type": "array",
"items": {
"type": "string",
"enum": [
"createdBy",
"lastUpdatedBy"
]
},
"examples": [
[
"createdBy",
"lastUpdatedBy"
]
],
"uniqueItems": true
}
}
}
},
"required": [
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
array |
Array of objects containing forms |
Copied to Clipboard
[
{
"name": "Form 123",
"children": [
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
},
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
},
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
}
],
"elements": [
{
"type": "method",
"id": {
"name": "method_name_1"
}
}
],
"_id": "400dd5fb-8042-3665-76c7-93234d4721ec",
"groups": [
"892faf10625a54d181bba869"
],
"created": "1959-05-30T08:07:48.681Z",
"created_by": "e8400a715b1d7e922340b5dc",
"last_updated": "1966-07-26T20:07:05.492Z",
"last_updated_by": "facb7b7d8c69a085dbe77a1b"
},
{
"name": "Form 123",
"children": [
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
},
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
}
],
"elements": [
{
"type": "method",
"id": {
"name": "method_name_1"
}
}
],
"_id": "42f839b4-9240-c1c9-e56a-e87dc16bc5ce",
"groups": [
"4597233c4acf10e8007e560a"
],
"created": "1985-10-18T16:09:44.266Z",
"created_by": "d05237dddc0dae57e4e380db",
"last_updated": "1944-12-07T16:04:27.304Z",
"last_updated_by": "97debbc867a823007f11d7a2"
}
]
Copied to Clipboard
{
"title": "data",
"type": "array",
"items": {
"$ref": "formDocument"
}
}