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
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
ok but the response is coming from the API
so would it be in the trigger node or the action node?
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.
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
but im getting this
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 APIOh, 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
oh thx lol i was making it overly complicated
it works now ^-^