BBAzn
BBAzn11mo ago

Format value and getting result

like how do i match the response schema of the API to buildship? its just { "results": [ { "text": "stuff that comes back" } ] }
9 Replies
Gaurav Chadha
Gaurav Chadha11mo ago
Hi @BarbieAsian, Another way - You can directly retrieve any value from the the Trigger, you can edit and pass the value as query param or body and send anything as response. Here's a quick video
BBAzn
BBAzn11mo ago
ok but the response is coming from the API so would it be in the trigger node or the action node?
Gaurav Chadha
Gaurav Chadha11mo ago
If it is coming from your Buildships API then in the trigger node. The return node only shows the response, you'll have to include a custom node with logic to change anything in the response.
BBAzn
BBAzn11mo ago
No description
BBAzn
BBAzn11mo ago
its an API call to another endpoint (not buildship) the API call to external endpoint is successful but the return node logic is the problem i guess the return node value is fetching one of the outputs from the API call node
BBAzn
BBAzn11mo ago
but im getting this
No description
BBAzn
BBAzn11mo ago
i dunno how to code the API call output so it catches the response from my external API { "results": [ { "text": "stuff that comes back" } ] } this is the json from the external API
Gaurav Chadha
Gaurav Chadha11mo ago
Oh, I see, you can refer to this video on API call - https://www.youtube.com/watch?v=BhglVhy38_g. Retuning data will work.
BuildShip + Rowy
YouTube
API Call Node | BuildShip Nodeverse
Get started with BuildShip 👉 https://buildship.com A Low-code Visual Backend Builder with AI 💬 Chat and build together with a community of no-code/low-code developers: https://buildship.com/discord 🐦 Tweets: https://twitter.com/buildshipapp #nocode #backend #apibuilder #lowcode #cronjob #scheduledtask #backgroundjob #googlecloud #openai #ai
BBAzn
BBAzn11mo ago
oh thx lol i was making it overly complicated it works now ^-^