Files
oam/knowledge base/hoppscotch.md
2024-11-02 22:34:53 +01:00

1.4 KiB

Hoppscotch

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Setup
brew install --cask 'hoppscotch'

Set environment variables to use with a next request:

const jsonData = pw.response.body;                // Save the JSON payload response
pw.env.set("accessToken", jsonData.access_token); // Set "accessToken" to the value of "access_token" in the response
pw.env.set("idToken", jsonData.id_token);         // Set "idToken" to the value of "id_token" in the response

Access the variables in the request section by referencing the variable in the format <<variable_name>>.

post-request scripts == tests.

Further readings

Alternatives:

Sources