{"openapi":"3.0.0","info":{"version":"1.0.0","title":"Docker Watchtower Dashboard APIs","description":"Proxy and control endpoints for remote Docker management"},"servers":[{"url":"https://docker.watchtower.dash.local"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","format":"uri","default":"about:blank","description":"A URI reference that identifies the problem type.","example":"https://example.com/probs/out-of-credit"},"title":{"type":"string","description":"A short, human-readable summary of the problem type.","example":"You do not have enough credit."},"status":{"type":"integer","minimum":100,"maximum":599,"description":"The HTTP status code generated by the origin server for this occurrence of the problem.","example":403},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem.","example":"Your current balance is 30, but that costs 50."},"instance":{"type":"string","format":"uri","description":"A URI reference that identifies the specific occurrence of the problem.","example":"/account/12345/msgs/abc"}},"required":["title","status"]},"ProxyAction":{"type":"string","enum":["ping","info","version","containers","container-inspect","container-stats","container-logs","container-start","container-stop","container-restart","host-metrics","all-containers","all-container-stats","container-fs-list","container-fs-read"]},"ProxyRequestParams":{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ProxyAction"},"hostId":{"type":"string","description":"Host ID to target"},"containerId":{"type":"string","description":"Container ID to perform action on"},"params":{"type":"object","additionalProperties":{"nullable":true},"description":"Additional parameters depending on action"}},"required":["action"]}},"parameters":{}},"paths":{"/api/docker-proxy":{"post":{"summary":"Proxy Docker commands to a host","tags":["Docker"],"security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","description":"Idempotency key for mutations"},"required":false,"name":"x-idempotency-key","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyRequestParams"}}}},"responses":{"200":{"description":"Successful proxy response","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad request or missing required fields","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Access denied","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Resource not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Internal Server Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"502":{"description":"Proxy downstream error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}}}