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

82 lines
1.4 KiB
Markdown

# Hoppscotch
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
<details>
<summary>Setup</summary>
```sh
brew install --cask 'hoppscotch'
```
</details>
<!-- Uncomment if used
<details>
<summary>Usage</summary>
```sh
```
</details>
-->
<!-- Uncomment if used
<details>
<summary>Real world use cases</summary>
```sh
```
</details>
-->
Set environment variables to use with a next request:
```js
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
- [Website]
- [Main repository]
- [Documentation]
Alternatives:
- [Bruno]
- [httpie]
- [Postman]
### Sources
<!--
Reference
═╬═Time══
-->
<!-- In-article sections -->
<!-- Knowledge base -->
[bruno]: bruno.md
[httpie]: httpie.md
[postman]: postman.md
<!-- Files -->
<!-- Upstream -->
[documentation]: https://docs.hoppscotch.io/
[main repository]: https://github.com/hoppscotch/hoppscotch
[website]: https://hoppscotch.com/
<!-- Others -->