This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CACHE_KEY = '__importCache' | |
const importCacheLayer = pm.environment.has(CACHE_KEY) | |
? pm.environment | |
: pm.collectionVariables.has(CACHE_KEY) | |
? pm.collectionVariables | |
: pm.globals.has(CACHE_KEY) | |
? pm.globals | |
: pm.variables; | |
const __import = (url, options = { timeout: 20_000}) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
self=`basename "$0"` | |
if (($# == 0)); then | |
cat <<EOF | |
Usage: $self url | |
Example: $self http://localhost:3000/echo | |
Check if a URL is returning a valid WebSocket handshake response. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "f8ee6daf-36ee-404c-9c5b-107a9fbee6b6", | |
"name": "Basic Auth", | |
"description": "An example of using Basic Auth in Postman.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Basic Auth", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "postman2openapi-wasm" | |
version = "0.1.0" | |
authors = ["Kevin Swiber <[email protected]>"] | |
edition = "2018" | |
[lib] | |
crate-type = ["cdylib", "rlib"] | |
[features] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('crypto'); | |
const http = require('http'); | |
const server = http.createServer(async (req, res) => { | |
if (req.method === 'GET') { | |
return handleSubscriptionVerification(req, res); | |
} else if (req.method === 'POST') { | |
return await handleEventNotification(req, res); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A reverse proxy that captures incoming HTTP traffic and sends it | |
// through Postman's forward proxy, which forwards traffic to the | |
// specified target in process.env.TARGET. | |
// request | |
// client -> this-proxy -> postman-proxy --| | |
// | | |
// target | |
// response | | |
// client <- this-proxy <- postman-proxy --| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- $messages := (index .Files 0).Messages -}} | |
{{- if gt (len .Files) 1 -}} | |
{{- range $file := (slice .Files 1) -}} | |
{{- $messages = concat $messages $file.Messages -}} | |
{{- end -}} | |
{{- end -}} | |
{ | |
"info": { | |
"name": "{{coalesce (env "POSTMAN_COLLECTION_NAME") "Imported gRPC JSON API"}}", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is a pre-request script for Postman collections, folders, or requests that imports | |
packages from npm after bundling them through [Browserify-CDN](https://wzrd.in/). | |
## Usage | |
In global, collection, or environment variables, define a variable named `dependencies` | |
that lists packages to import in the form `<package-name>@<version>`. To include | |
multiple packages, separate the package specs with commas | |
(e.g., `async@latest,[email protected]`). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http: | |
port: 8080 | |
https: | |
port: 9443 | |
options: | |
secureOptions: 67108864 # node -p "require('constants').SSL_OP_NO_TLSv1" | |
tls: | |
"*.demo.io": | |
key: example/keys/demo.io.key.pem | |
cert: example/keys/demo.io.cert.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: 'express-gateway-config' | |
data: | |
gateway.config.yml: | | |
http: | |
host: '*' | |
port: 8080 | |
admin: |