From e5e5cf6373b768c2e5c87d033483cb32a275e875 Mon Sep 17 00:00:00 2001 From: rpm-mcarman <65228808+rpm-mcarman@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:20:58 -0500 Subject: [PATCH] Trying again --- app/api/BOM/NewBomItem.json | 152 ++---------------------------------- 1 file changed, 7 insertions(+), 145 deletions(-) diff --git a/app/api/BOM/NewBomItem.json b/app/api/BOM/NewBomItem.json index 4e0edd5..8c79b44 100644 --- a/app/api/BOM/NewBomItem.json +++ b/app/api/BOM/NewBomItem.json @@ -39,82 +39,14 @@ }, "exec": { "steps": { - "name": "api", + "name": "api1", "module": "api", "action": "send", "options": { - "url": "http://vapor.prelub.com/api/v1.0/boms/wapplerinsert", + "headers": { + "content-type": "application/json" + }, "method": "POST", - "schema": [ - { - "type": "object", - "name": "data", - "sub": [ - { - "type": "number", - "name": "updateuserid" - }, - { - "type": "text", - "name": "old" - }, - { - "type": "text", - "name": "new" - }, - { - "type": "number", - "name": "id" - }, - { - "type": "number", - "name": "createuserid" - }, - { - "type": "number", - "name": "viewlocation" - } - ] - }, - { - "type": "object", - "name": "headers", - "sub": [ - { - "type": "text", - "name": "access-control-allow-headers" - }, - { - "type": "text", - "name": "access-control-allow-methods" - }, - { - "type": "text", - "name": "access-control-allow-origin" - }, - { - "type": "text", - "name": "access-control-expose-headers" - }, - { - "type": "text", - "name": "connection" - }, - { - "type": "text", - "name": "content-length" - }, - { - "type": "text", - "name": "content-type" - }, - { - "type": "text", - "name": "date" - } - ] - } - ], "dataType": "json", "data": { "updatedate": "{{NOW}}", @@ -127,80 +59,10 @@ "new": "{{$_POST.newbomnew}}", "updateuserid": "-1", "partnumberid": "{{$_POST.newbompnid}}" - } - }, - "output": true, - "meta": [ - { - "type": "object", - "name": "data", - "sub": [ - { - "type": "number", - "name": "updateuserid" - }, - { - "type": "text", - "name": "old" - }, - { - "type": "text", - "name": "new" - }, - { - "type": "number", - "name": "id" - }, - { - "type": "number", - "name": "createuserid" - }, - { - "type": "number", - "name": "viewlocation" - } - ] }, - { - "type": "object", - "name": "headers", - "sub": [ - { - "type": "text", - "name": "access-control-allow-headers" - }, - { - "type": "text", - "name": "access-control-allow-methods" - }, - { - "type": "text", - "name": "access-control-allow-origin" - }, - { - "type": "text", - "name": "access-control-expose-headers" - }, - { - "type": "text", - "name": "connection" - }, - { - "type": "text", - "name": "content-length" - }, - { - "type": "text", - "name": "content-type" - }, - { - "type": "text", - "name": "date" - } - ] - } - ], - "outputType": "object" + "url": "http://vapor.prelub.com/api/v1.0/boms/wapplerinsert" + }, + "output": true } } } \ No newline at end of file