feat: hoppscotch appears but it's not ready

This commit is contained in:
Michele Cereda
2023-11-19 16:22:59 +01:00
parent b20942e25a
commit 807eb358ce
5 changed files with 38 additions and 1 deletions

View File

@@ -63,6 +63,7 @@
"hadolint",
"hdparm",
"helmfile",
"hoppscotch",
"imager",
"istio",
"istioctl",

View File

@@ -0,0 +1,17 @@
```sh
brew install --cask 'hoppscotch'
```
Access the variables in the request section by referencing the variable in the format `<<variable_name>>`.
post-request scripts == tests
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
```
https://docs.hoppscotch.io/

View File

@@ -24,6 +24,8 @@
- [Documentation]
- [Inso CLI], runner for Insomnia
- [Postman], an alternative to Insomnia
- [Hoppscotch], an alternative to Insomnia
- [Bruno], an alternative to Insomnia
## Sources
@@ -44,6 +46,8 @@ All the references in the [further readings] section, plus the following:
[further readings]: #further-readings
<!-- Knowledge base -->
[bruno]: bruno.md
[hoppscotch]: hoppscotch.md
[postman]: postman.md
<!-- Others -->

View File

@@ -0,0 +1,11 @@
```js
let now = new Date()
let oneYearFromNow = new Date()
oneYearFromNow.setDate(oneYearFromNow.getDate() + 365)
console.log(now.toISOString())
console.log(oneYearFromNow.toISOString())
```
https://playcode.io/empty_javascript

View File

@@ -66,8 +66,10 @@ More examples [here][scripting in postman].
- [Website]
- [Documentation]
- [Insomnia], an alternative to Postman
- [Newman], CLI Collection runner for Postman
- [Insomnia], an alternative to Postman
- [Hoppscotch], an alternative to Postman
- [Bruno], an alternative to Postman
## Sources
@@ -87,5 +89,7 @@ All the references in the [further readings] section, plus the following:
[website]: https://www.postman.com/
<!-- Knowledge base -->
[bruno]: bruno.md
[hoppscotch]: hoppscotch.md
[insomnia]: insomnia.md
[newman]: newman.md