From f87f27ddc865c8feee2d5a6c0e2129d6efa9cc22 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Thu, 9 Sep 2021 17:39:52 +0200 Subject: Add /containers/stats response to API docs Include the response schema for a succesful request in the /containers/stats API documentation Additionally remove http 409 from /libpod/containers/stats docs, the documentation was copied from the deprecated stats endpoint, when a container is unavailabe the endpoint returns an empty list and no 409. Signed-off-by: Jelle van der Waa --- pkg/api/handlers/swagger/swagger.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkg/api/handlers/swagger') diff --git a/pkg/api/handlers/swagger/swagger.go b/pkg/api/handlers/swagger/swagger.go index 2296eea3a..9844839b7 100644 --- a/pkg/api/handlers/swagger/swagger.go +++ b/pkg/api/handlers/swagger/swagger.go @@ -176,3 +176,12 @@ type swagInspectPodResponse struct { define.InspectPodData } } + +// Get stats for one or more containers +// swagger:response ContainerStats +type swagContainerStatsResponse struct { + // in:body + Body struct { + define.ContainerStats + } +} -- cgit v1.2.3-54-g00ecf