From a1cc99dd4661ebf66979ccad40b9bab76474b35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Sj=C3=B6lund?= Date: Thu, 7 Dec 2023 14:27:47 +0100 Subject: [PATCH] [CI:DOCS] compat api: fix formatting syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reuse text from podman api Fixes https://github.com/containers/podman/issues/20390 Signed-off-by: Erik Sjölund --- pkg/api/server/register_containers.go | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/api/server/register_containers.go b/pkg/api/server/register_containers.go index 88f9b6cb76..b4f0d8592c 100644 --- a/pkg/api/server/register_containers.go +++ b/pkg/api/server/register_containers.go @@ -71,21 +71,21 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error { // name: filters // type: string // description: | - // Returns a list of containers. - // - ancestor=([:], , or ) - // - before=( or ) - // - expose=([/]|/[]) - // - exited= containers with exit code of - // - health=(starting|healthy|unhealthy|none) - // - id= a container's ID - // - is-task=(true|false) - // - label=key or label="key=value" of a container label - // - name= a container's name - // - network=( or ) - // - publish=([/]|/[]) - // - since=( or ) - // - status=(created|restarting|running|removing|paused|exited|dead) - // - volume=( or ) + // A JSON encoded value of the filters (a `map[string][]string`) to process on the containers list. Available filters: + // - `ancestor`=(`[:]`, ``, or ``) + // - `before`=(`` or ``) + // - `expose`=(`[/]` or `/[]`) + // - `exited=` containers with exit code of `` + // - `health`=(`starting`, `healthy`, `unhealthy` or `none`) + // - `id=` a container's ID + // - `is-task`=(`true` or `false`) + // - `label`=(`key` or `"key=value"`) of a container label + // - `name=` a container's name + // - `network`=(`` or ``) + // - `publish`=(`[/]` or `/[]`) + // - `since`=(`` or ``) + // - `status`=(`created`, `restarting`, `running`, `removing`, `paused`, `exited` or `dead`) + // - `volume`=(`` or ``) // produces: // - application/json // responses: