We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31ea275 + 3dfbc3d commit c3f660cCopy full SHA for c3f660c
app/main.py
@@ -71,15 +71,15 @@ def test_latency(
71
72
@app.post("/api/test-latency")
73
def api_test_latency(
74
- dbtype: str,
75
- host: str = "",
76
- port: str = "",
77
- username: str = "",
78
- password: str = "",
79
- database: str = "",
80
- url: str = "",
81
- interval: float = 1.0,
82
- period: int = 10,
+ dbtype: str = Form(...),
+ host: str = Form(""),
+ port: str = Form(""),
+ username: str = Form(""),
+ password: str = Form(""),
+ database: str = Form(""),
+ url: str = Form(""),
+ interval: float = Form(1.0),
+ period: int = Form(10),
83
credentials: HTTPBasicCredentials = Depends(security)
84
):
85
# For API/CLI use -- returns result JSON
0 commit comments