MattN
MattN11mo ago

Detecting data schema from trigger node

Hey everyone - Buildship newbie here. Can Buildship automatically detect the JSON schema that comes in via a REST API trigger node? I was expecting to be able to something which I've done in pipedream which is send a test request to the endpoint that allows the tool to detect the schema and allow me to choose which attributes I want to include in subsequent nodes. Something like body.product.id - with autosuggestions based on the detected schema. Is this a thing in Buildship?
6 Replies
Gaurav Chadha
Gaurav Chadha11mo ago
Yes, you can pass the json schema to the BuildShip API and access the the objects in the Schema using dot notation or variables https://docs.buildship.com/trigger-nodes/rest-api. Also when you make a request to the shipped BuildSHip endpoint you can get all the data in the BuildShip cloud logs which you can access in node values - https://docs.buildship.com/logging
Logging – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
MattN
MattNOP11mo ago
Thanks Gaurav, though I'm not 100% that addresses what I mean. See this image from a Pipedream workflow. What I did was send a test request to the equivalent of the trigger node. Pipedream automatically parses this for me and let's me access the structure in a 'nocode' way in downstream nodes. Can Buildship do this?
No description
Gaurav Chadha
Gaurav Chadha11mo ago
Yes, you can do it like this. Passing the body to the API and adding the field key values that will be sent to the body and then access them as dynamic variables which you can access in a nocode way in downstream node. Let me know if this helps.
No description
No description
MattN
MattNOP11mo ago
Got it. And I have to define these keys manually myself, correct? Any plans to autodetect based on a test payload?
Gaurav Chadha
Gaurav Chadha11mo ago
Currently yes, we can introudce autodetect as a feature in near future.
MattN
MattNOP11mo ago
That would be amazing. Thanks for your help!