Silvenga / unifi-udm-api-proxy

A compatibility shim to support accessing the new UnifiOs API.
MIT License
11 stars 5 forks source link

Example of how to confirm container is working #2

Closed johntdyer closed 4 years ago

johntdyer commented 4 years ago

Do you have an example CURL I can use against this to confirm it is infa

Silvenga commented 4 years ago

The latest image pushed supports health checks, but if you want to validate that the proxy is proxying, the following should return a not authorized from the UDM.

curl https://localhost/api/auth --insecure -H "Content-Type: application/json; charset=utf-8" -H "Content-Length: 0" -X POST --http1.1
{
  "errors": [
    "Invalid username or password"
  ]
}
Silvenga commented 4 years ago

Closing for now, feel free to re-open.