Skip to content

Instantly share code, notes, and snippets.

@mythes
mythes / get_swagger_endpoints.js
Last active August 22, 2018 08:49
#swagger #console #parser #js
// 1. open swagger url
// 2. paste into console
// 3. execute
document.querySelectorAll(".endpoint").forEach(function(e) {
let method = e
.querySelector(".http_method > .toggleOperation")
.textContent.toUpperCase();
let path = e.querySelector(".path > .toggleOperation").textContent;
let result = method + " " + path;
cat run.txt | parallel "siege -b -c255 -t30S --content-type "application/json" {}"
cat run.txt | parallel "ab -n 100 -c 100 {}"
run.txt ->>>
https://www.example.com/
https://www.example.com/entity/
....
version: '3.1'
services:
db:
image: mysql
restart: always
ports:
- 3306:3306
- 33060:33060