9 lines
253 B
Bash
9 lines
253 B
Bash
#!/bin/bash
|
|
# Check what the /models/load endpoint expects
|
|
curl -s http://localhost:8080/openapi.json | python3 -c '
|
|
import sys, json
|
|
d = json.load(sys.stdin)
|
|
load = d["paths"].get("/models/load", {}).get("post", {})
|
|
print(json.dumps(load, indent=2))
|
|
'
|