diepm / vim-rest-console

A REST console for Vim.
658 stars 54 forks source link

use value from response in the following request? #99

Open Mohamed-Fathy-Salah opened 2 years ago

Mohamed-Fathy-Salah commented 2 years ago

Is it possible to fetch a value from a response and use it in the following request? for example:

https://localhost:3000
Content-Type: application/json;
--
--
# create item
# response is { "itemId": "asdfasdf"}
POST /item
{ "data": "data"}
var1 = res.itemId 
-- 
# update item
PUT /item/:var1
{ "data": "blah"}

If yes, can you please tell me how? Thank you