alexandrehtrb / Pororoca

An HTTP inspection tool with support for HTTP/2 and HTTP/3. Alternative to Postman.

Home Page:https://pororoca.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capture response values into variables

alexandrehtrb opened this issue · comments

Postman and other HTTP inspectors can have scripts that capture response values into variables. We can have the something similar in Pororoca.

At first, just JSON value capture into an ephemerous environment variables - no scripting. For simplicity, require that for value capture, an environment should exist and be active (no ephemerous variables in collection level, only in environment level).

Example response (object):

{"obj":{"id":1}}

Capture table:

Capture Target variable
root.obj.id MyVariable

Example response (array):

[{"id":1}]

Capture table:

Capture Target variable
root[0].id MyVariable

Done, will be published in next release