From da4b8d3c645d69ee34b31adf029c7ba1e38c1bba Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 10 Jan 2020 08:25:12 -0600 Subject: swagger documentation updates adhere closer to the spec by using description and summary fields and also ensuring that the id is unique to avoid collision between generic and libpod endpoints. also, make swagger output work with redoc which seems to display our information better for our needs. Signed-off-by: baude --- pkg/api/handlers/generic/containers_create.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'pkg/api/handlers/generic/containers_create.go') diff --git a/pkg/api/handlers/generic/containers_create.go b/pkg/api/handlers/generic/containers_create.go index ef5337abd..f98872690 100644 --- a/pkg/api/handlers/generic/containers_create.go +++ b/pkg/api/handlers/generic/containers_create.go @@ -71,11 +71,7 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) { return } - type ctrCreateResponse struct { - Id string `json:"Id"` - Warnings []string `json:"Warnings"` - } - response := ctrCreateResponse{ + response := ContainerCreateResponse{ Id: ctr.ID(), Warnings: []string{}} -- cgit v1.2.3-54-g00ecf