mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
feat: hoppscotch appears but it's not ready
This commit is contained in:
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -63,6 +63,7 @@
|
||||
"hadolint",
|
||||
"hdparm",
|
||||
"helmfile",
|
||||
"hoppscotch",
|
||||
"imager",
|
||||
"istio",
|
||||
"istioctl",
|
||||
|
||||
17
knowledge base/hoppscotch.placeholder
Normal file
17
knowledge base/hoppscotch.placeholder
Normal 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/
|
||||
@@ -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 -->
|
||||
|
||||
11
knowledge base/javascript.placeholder
Normal file
11
knowledge base/javascript.placeholder
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user