Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the request body in sequential call with dynamic value #422

Closed
divyasathya opened this issue Feb 17, 2022 · 3 comments
Closed

Modify the request body in sequential call with dynamic value #422

divyasathya opened this issue Feb 17, 2022 · 3 comments

Comments

@divyasathya
Copy link

I am implementing a sequential call which include two API.They are API1 and API2.API 1 is Get and API2 is post call .
The initial request will route to API 1, After it is successfully executed, The request will route to API2.I want to set the request body of API2 with the response of API1..For that , i am doing following configuration .

Here xyz is the key which i am setting in API1 response .

"github.com/devopsfaith/krakend-martian":
{
"body.Modifier": {
"scope": ["request","response"],
"body": "{resp0_xyz}"
}
}
}

Can you please advise how to achieve this .

@alombarte
Copy link
Member

Hi,

This flow is not supported as of krakend 1.4.1. You can use data from API1 to build the URL of API2 but you cannot pass the body content from one to the other.

@divyasathya
Copy link
Author

Perfect ..Thank you

@github-actions
Copy link

This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants