summaryrefslogtreecommitdiff
path: root/pkg/api/server
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-11-01 16:10:10 +0100
committerMatej Vasek <mvasek@redhat.com>2021-11-01 16:53:49 +0100
commit218d91d76d49c7329704a80411ad2c115b074f84 (patch)
tree8ef32d6ae77b05866d0eb88ff251477f07f359a1 /pkg/api/server
parent85bad0cc7c68b71ab7ddb6ed09b862145c6c6d0e (diff)
downloadpodman-218d91d76d49c7329704a80411ad2c115b074f84.tar.gz
podman-218d91d76d49c7329704a80411ad2c115b074f84.tar.bz2
podman-218d91d76d49c7329704a80411ad2c115b074f84.zip
Fix libpod API conformance to swagger
* Return empty array when nothing has been pruned. * Use correct return type swagger doc-comment. Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'pkg/api/server')
-rw-r--r--pkg/api/server/register_images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index 95a8b4939..82b4c2d89 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -1069,7 +1069,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// - application/json
// responses:
// 200:
- // $ref: "#/responses/DocsImageDeleteResponse"
+ // $ref: "#/responses/DocsLibpodPruneResponse"
// 500:
// $ref: '#/responses/InternalError'
r.Handle(VersionedPath("/libpod/images/prune"), s.APIHandler(libpod.PruneImages)).Methods(http.MethodPost)