8 lines
214 B
Bash
8 lines
214 B
Bash
#!/bin/bash
|
|
curl -s http://localhost:8080/openapi.json | python3 -c '
|
|
import sys, json
|
|
d = json.load(sys.stdin)
|
|
schema = d["components"]["schemas"].get("LoadModelRequest", {})
|
|
print(json.dumps(schema, indent=2))
|
|
'
|