#!/bin/bash
curl -s http://localhost:8080/openapi.json | python3 -c '
import sys, json
d = json.load(sys.stdin)
for p, v in d["paths"].items():
    for m in v:
        if m in ("get","post","put","delete"):
            print(f"{m.upper():6} {p}")
'
