{
  "meta": {
    "options": {
      "linkedFile": "/views/search.ejs",
      "linkedForm": "frm_search"
    },
    "$_GET": [
      {
        "type": "text",
        "name": "input"
      }
    ],
    "$_POST": [
      {
        "type": "text",
        "fieldName": "input1",
        "name": "input1"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "api",
      "module": "api",
      "action": "send",
      "options": {
        "url": "{{$_ENV.API_BASEURL+'partnumbers/num/'+$_GET.input}}",
        "schema": [
          {
            "type": "object",
            "name": "data",
            "sub": [
              {
                "type": "number",
                "name": "id"
              },
              {
                "type": "text",
                "name": "comments"
              },
              {
                "type": "number",
                "name": "createuserid"
              },
              {
                "type": "text",
                "name": "description"
              },
              {
                "type": "object",
                "name": "partcode",
                "sub": [
                  {
                    "type": "number",
                    "name": "id"
                  },
                  {
                    "type": "text",
                    "name": "description"
                  },
                  {
                    "type": "number",
                    "name": "createuserid"
                  },
                  {
                    "type": "text",
                    "name": "updatedate"
                  },
                  {
                    "type": "object",
                    "name": "parent",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "parttype",
                    "sub": [
                      {
                        "type": "text",
                        "name": "updatedate"
                      },
                      {
                        "type": "number",
                        "name": "ending"
                      },
                      {
                        "type": "number",
                        "name": "id"
                      },
                      {
                        "type": "number",
                        "name": "updateuserid"
                      },
                      {
                        "type": "number",
                        "name": "starting"
                      },
                      {
                        "type": "text",
                        "name": "createdate"
                      },
                      {
                        "type": "text",
                        "name": "description"
                      },
                      {
                        "type": "text",
                        "name": "name"
                      },
                      {
                        "type": "number",
                        "name": "createuserid"
                      }
                    ]
                  },
                  {
                    "type": "boolean",
                    "name": "ispartcode"
                  },
                  {
                    "type": "number",
                    "name": "updateuserid"
                  },
                  {
                    "type": "boolean",
                    "name": "isactive"
                  },
                  {
                    "type": "text",
                    "name": "code"
                  },
                  {
                    "type": "text",
                    "name": "createdate"
                  },
                  {
                    "type": "text",
                    "name": "name"
                  }
                ]
              },
              {
                "type": "text",
                "name": "updatedate"
              },
              {
                "type": "object",
                "name": "replaces",
                "sub": [
                  {
                    "type": "text",
                    "name": "weight"
                  },
                  {
                    "type": "object",
                    "name": "status",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "number",
                    "name": "createuserid"
                  },
                  {
                    "type": "text",
                    "name": "file"
                  },
                  {
                    "type": "text",
                    "name": "updatedate"
                  },
                  {
                    "type": "number",
                    "name": "updateuserid"
                  },
                  {
                    "type": "text",
                    "name": "secondaryvendorpartnumber"
                  },
                  {
                    "type": "object",
                    "name": "secondaryvendor",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "text",
                    "name": "primarycustomerpartnumber"
                  },
                  {
                    "type": "object",
                    "name": "replaces",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "replacedby",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "partcode",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "text",
                    "name": "listprice"
                  },
                  {
                    "type": "text",
                    "name": "stdcost"
                  },
                  {
                    "type": "number",
                    "name": "id"
                  },
                  {
                    "type": "text",
                    "name": "ppap"
                  },
                  {
                    "type": "text",
                    "name": "number"
                  },
                  {
                    "type": "object",
                    "name": "primaryvendor",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "text",
                    "name": "comments"
                  },
                  {
                    "type": "text",
                    "name": "createdate"
                  },
                  {
                    "type": "text",
                    "name": "primaryvendorpartnumber"
                  },
                  {
                    "type": "text",
                    "name": "description"
                  }
                ]
              },
              {
                "type": "number",
                "name": "updateuserid"
              },
              {
                "type": "text",
                "name": "ppap"
              },
              {
                "type": "text",
                "name": "secondaryvendorpartnumber"
              },
              {
                "type": "text",
                "name": "number"
              },
              {
                "type": "text",
                "name": "primarycustomerpartnumber"
              },
              {
                "type": "text",
                "name": "primaryvendorpartnumber"
              },
              {
                "type": "object",
                "name": "replacedby",
                "sub": [
                  {
                    "type": "text",
                    "name": "weight"
                  },
                  {
                    "type": "object",
                    "name": "status",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "number",
                    "name": "createuserid"
                  },
                  {
                    "type": "text",
                    "name": "file"
                  },
                  {
                    "type": "text",
                    "name": "updatedate"
                  },
                  {
                    "type": "number",
                    "name": "updateuserid"
                  },
                  {
                    "type": "text",
                    "name": "secondaryvendorpartnumber"
                  },
                  {
                    "type": "text",
                    "name": "primarycustomerpartnumber"
                  },
                  {
                    "type": "object",
                    "name": "secondaryvendor",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "replaces",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "replacedby",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "object",
                    "name": "partcode",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "text",
                    "name": "listprice"
                  },
                  {
                    "type": "text",
                    "name": "stdcost"
                  },
                  {
                    "type": "number",
                    "name": "id"
                  },
                  {
                    "type": "text",
                    "name": "ppap"
                  },
                  {
                    "type": "text",
                    "name": "number"
                  },
                  {
                    "type": "object",
                    "name": "primaryvendor",
                    "sub": [
                      {
                        "type": "number",
                        "name": "id"
                      }
                    ]
                  },
                  {
                    "type": "text",
                    "name": "comments"
                  },
                  {
                    "type": "text",
                    "name": "createdate"
                  },
                  {
                    "type": "text",
                    "name": "primaryvendorpartnumber"
                  },
                  {
                    "type": "text",
                    "name": "description"
                  }
                ]
              },
              {
                "type": "text",
                "name": "createdate"
              },
              {
                "type": "object",
                "name": "primaryvendor",
                "sub": [
                  {
                    "type": "text",
                    "name": "updatedate"
                  },
                  {
                    "type": "number",
                    "name": "id"
                  },
                  {
                    "type": "text",
                    "name": "erpid"
                  },
                  {
                    "type": "number",
                    "name": "updateuserid"
                  },
                  {
                    "type": "text",
                    "name": "createdate"
                  },
                  {
                    "type": "text",
                    "name": "description"
                  },
                  {
                    "type": "text",
                    "name": "name"
                  },
                  {
                    "type": "number",
                    "name": "createuserid"
                  }
                ]
              },
              {
                "type": "object",
                "name": "status",
                "sub": [
                  {
                    "type": "text",
                    "name": "createuserid"
                  },
                  {
                    "type": "text",
                    "name": "updatedate"
                  },
                  {
                    "type": "text",
                    "name": "updateuserid"
                  },
                  {
                    "type": "text",
                    "name": "name"
                  },
                  {
                    "type": "text",
                    "name": "createdate"
                  },
                  {
                    "type": "number",
                    "name": "id"
                  }
                ]
              },
              {
                "type": "object",
                "name": "secondaryvendor",
                "sub": [
                  {
                    "type": "text",
                    "name": "updatedate"
                  },
                  {
                    "type": "number",
                    "name": "id"
                  },
                  {
                    "type": "text",
                    "name": "erpid"
                  },
                  {
                    "type": "number",
                    "name": "updateuserid"
                  },
                  {
                    "type": "text",
                    "name": "createdate"
                  },
                  {
                    "type": "text",
                    "name": "description"
                  },
                  {
                    "type": "text",
                    "name": "name"
                  },
                  {
                    "type": "number",
                    "name": "createuserid"
                  }
                ]
              }
            ]
          },
          {
            "type": "object",
            "name": "headers",
            "sub": [
              {
                "type": "text",
                "name": "connection"
              },
              {
                "type": "text",
                "name": "content-length"
              },
              {
                "type": "text",
                "name": "content-type"
              },
              {
                "type": "text",
                "name": "date"
              }
            ]
          }
        ]
      },
      "output": true,
      "meta": [
        {
          "type": "object",
          "name": "data",
          "sub": [
            {
              "type": "number",
              "name": "id"
            },
            {
              "type": "text",
              "name": "comments"
            },
            {
              "type": "number",
              "name": "createuserid"
            },
            {
              "type": "text",
              "name": "description"
            },
            {
              "type": "object",
              "name": "partcode",
              "sub": [
                {
                  "type": "number",
                  "name": "id"
                },
                {
                  "type": "text",
                  "name": "description"
                },
                {
                  "type": "number",
                  "name": "createuserid"
                },
                {
                  "type": "text",
                  "name": "updatedate"
                },
                {
                  "type": "object",
                  "name": "parent",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "parttype",
                  "sub": [
                    {
                      "type": "text",
                      "name": "updatedate"
                    },
                    {
                      "type": "number",
                      "name": "ending"
                    },
                    {
                      "type": "number",
                      "name": "id"
                    },
                    {
                      "type": "number",
                      "name": "updateuserid"
                    },
                    {
                      "type": "number",
                      "name": "starting"
                    },
                    {
                      "type": "text",
                      "name": "createdate"
                    },
                    {
                      "type": "text",
                      "name": "description"
                    },
                    {
                      "type": "text",
                      "name": "name"
                    },
                    {
                      "type": "number",
                      "name": "createuserid"
                    }
                  ]
                },
                {
                  "type": "boolean",
                  "name": "ispartcode"
                },
                {
                  "type": "number",
                  "name": "updateuserid"
                },
                {
                  "type": "boolean",
                  "name": "isactive"
                },
                {
                  "type": "text",
                  "name": "code"
                },
                {
                  "type": "text",
                  "name": "createdate"
                },
                {
                  "type": "text",
                  "name": "name"
                }
              ]
            },
            {
              "type": "text",
              "name": "updatedate"
            },
            {
              "type": "object",
              "name": "replaces",
              "sub": [
                {
                  "type": "text",
                  "name": "weight"
                },
                {
                  "type": "object",
                  "name": "status",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "number",
                  "name": "createuserid"
                },
                {
                  "type": "text",
                  "name": "file"
                },
                {
                  "type": "text",
                  "name": "updatedate"
                },
                {
                  "type": "number",
                  "name": "updateuserid"
                },
                {
                  "type": "text",
                  "name": "secondaryvendorpartnumber"
                },
                {
                  "type": "object",
                  "name": "secondaryvendor",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "text",
                  "name": "primarycustomerpartnumber"
                },
                {
                  "type": "object",
                  "name": "replaces",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "replacedby",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "partcode",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "text",
                  "name": "listprice"
                },
                {
                  "type": "text",
                  "name": "stdcost"
                },
                {
                  "type": "number",
                  "name": "id"
                },
                {
                  "type": "text",
                  "name": "ppap"
                },
                {
                  "type": "text",
                  "name": "number"
                },
                {
                  "type": "object",
                  "name": "primaryvendor",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "text",
                  "name": "comments"
                },
                {
                  "type": "text",
                  "name": "createdate"
                },
                {
                  "type": "text",
                  "name": "primaryvendorpartnumber"
                },
                {
                  "type": "text",
                  "name": "description"
                }
              ]
            },
            {
              "type": "number",
              "name": "updateuserid"
            },
            {
              "type": "text",
              "name": "ppap"
            },
            {
              "type": "text",
              "name": "secondaryvendorpartnumber"
            },
            {
              "type": "text",
              "name": "number"
            },
            {
              "type": "text",
              "name": "primarycustomerpartnumber"
            },
            {
              "type": "text",
              "name": "primaryvendorpartnumber"
            },
            {
              "type": "object",
              "name": "replacedby",
              "sub": [
                {
                  "type": "text",
                  "name": "weight"
                },
                {
                  "type": "object",
                  "name": "status",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "number",
                  "name": "createuserid"
                },
                {
                  "type": "text",
                  "name": "file"
                },
                {
                  "type": "text",
                  "name": "updatedate"
                },
                {
                  "type": "number",
                  "name": "updateuserid"
                },
                {
                  "type": "text",
                  "name": "secondaryvendorpartnumber"
                },
                {
                  "type": "text",
                  "name": "primarycustomerpartnumber"
                },
                {
                  "type": "object",
                  "name": "secondaryvendor",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "replaces",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "replacedby",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "object",
                  "name": "partcode",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "text",
                  "name": "listprice"
                },
                {
                  "type": "text",
                  "name": "stdcost"
                },
                {
                  "type": "number",
                  "name": "id"
                },
                {
                  "type": "text",
                  "name": "ppap"
                },
                {
                  "type": "text",
                  "name": "number"
                },
                {
                  "type": "object",
                  "name": "primaryvendor",
                  "sub": [
                    {
                      "type": "number",
                      "name": "id"
                    }
                  ]
                },
                {
                  "type": "text",
                  "name": "comments"
                },
                {
                  "type": "text",
                  "name": "createdate"
                },
                {
                  "type": "text",
                  "name": "primaryvendorpartnumber"
                },
                {
                  "type": "text",
                  "name": "description"
                }
              ]
            },
            {
              "type": "text",
              "name": "createdate"
            },
            {
              "type": "object",
              "name": "primaryvendor",
              "sub": [
                {
                  "type": "text",
                  "name": "updatedate"
                },
                {
                  "type": "number",
                  "name": "id"
                },
                {
                  "type": "text",
                  "name": "erpid"
                },
                {
                  "type": "number",
                  "name": "updateuserid"
                },
                {
                  "type": "text",
                  "name": "createdate"
                },
                {
                  "type": "text",
                  "name": "description"
                },
                {
                  "type": "text",
                  "name": "name"
                },
                {
                  "type": "number",
                  "name": "createuserid"
                }
              ]
            },
            {
              "type": "object",
              "name": "status",
              "sub": [
                {
                  "type": "text",
                  "name": "createuserid"
                },
                {
                  "type": "text",
                  "name": "updatedate"
                },
                {
                  "type": "text",
                  "name": "updateuserid"
                },
                {
                  "type": "text",
                  "name": "name"
                },
                {
                  "type": "text",
                  "name": "createdate"
                },
                {
                  "type": "number",
                  "name": "id"
                }
              ]
            },
            {
              "type": "object",
              "name": "secondaryvendor",
              "sub": [
                {
                  "type": "text",
                  "name": "updatedate"
                },
                {
                  "type": "number",
                  "name": "id"
                },
                {
                  "type": "text",
                  "name": "erpid"
                },
                {
                  "type": "number",
                  "name": "updateuserid"
                },
                {
                  "type": "text",
                  "name": "createdate"
                },
                {
                  "type": "text",
                  "name": "description"
                },
                {
                  "type": "text",
                  "name": "name"
                },
                {
                  "type": "number",
                  "name": "createuserid"
                }
              ]
            }
          ]
        },
        {
          "type": "object",
          "name": "headers",
          "sub": [
            {
              "type": "text",
              "name": "connection"
            },
            {
              "type": "text",
              "name": "content-length"
            },
            {
              "type": "text",
              "name": "content-type"
            },
            {
              "type": "text",
              "name": "date"
            }
          ]
        }
      ],
      "outputType": "object"
    }
  }
}