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"
}
],
"elements": [
{
"type": "method",
"id": {
"name": "method_name_1"
}
}
],
"_id": "5e8768a7-07dc-8bfe-13ec-45f84bd11dec",
"groups": [
"2f730075feed2dbfa2bfce13",
"71c5e5c4c8d764bff6bcabdb",
"6c7d5da8b7f8376368f5d5da"
],
"created": "2009-06-16T13:18:57.617Z",
"created_by": "658b4b9406b197ec13f7e710",
"last_updated": "1967-02-19T06:56:48.622Z",
"last_updated_by": "44d3132d0a56f3aef9dd98b8"
},
{
"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": "04bc005e-bc82-e3bc-973a-d04afa6cd819",
"groups": [
"d53c3a70352d59c658bb7eb4",
"7ad3e401c24789bbfafc1356",
"531a084411396a0f11889312"
],
"created": "1963-02-17T07:42:38.075Z",
"created_by": "c1e58bf196602b3331471cb2",
"last_updated": "1971-06-09T14:54:35.11Z",
"last_updated_by": "7e0e0b60f930a3f72f972dd8"
}
]
Copied to Clipboard
{
"title": "data",
"type": "array",
"items": {
"$ref": "formDocument"
}
}