I am a software developer living in Bordeaux. I am a .NET and Azure enthusiast, primarly coding in C# but I like to discover other languages and technologies too.
Yes you can, you just have to call the first request, then the second request.
You can find below an example. I tested it, it works fine.
### First request
# @name myRequest
POST https://jsonplaceholder.typicode.com/posts
Content-Type: application/json
{
"userId": 1,
"title": "TEST 18",
"body": "TEST body 18"
}
### Second request using response in body
POST https://jsonplaceholder.typicode.com/posts
Content-Type: application/json
{
"userId": 1,
"title": "TEST ",
"body": "TEST body {{myRequest.response.body.id}}"
}
### Second request using a variable
@test2 = {{myRequest.response.body.id}}
POST https://jsonplaceholder.typicode.com/posts
Content-Type: application/json
{
"userId": 1,
"title": "TEST ",
"body": "TEST body {{test2}}"
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes you can, you just have to call the first request, then the second request.
You can find below an example. I tested it, it works fine.