Fix swagger documentation

* ContainerKillLibpod "signal" query default is SIGKILL.
* ContainerStopLibpod "all" query doesn't exist.

[NO NEW TESTS NEEDED]

Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
Toshiki Sonoda
2022-09-09 14:53:34 +09:00
parent 6d8bafe57a
commit 27be5eaaf2

View File

@ -897,7 +897,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// - in: query // - in: query
// name: signal // name: signal
// type: string // type: string
// default: TERM // default: SIGKILL
// description: signal to be sent to container, either by integer or SIG_ name // description: signal to be sent to container, either by integer or SIG_ name
// produces: // produces:
// - application/json // - application/json
@ -1291,11 +1291,6 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// required: true // required: true
// description: the name or ID of the container // description: the name or ID of the container
// - in: query // - in: query
// name: all
// type: boolean
// default: false
// description: Stop all containers
// - in: query
// name: timeout // name: timeout
// type: integer // type: integer
// default: 10 // default: 10