summaryrefslogtreecommitdiff
path: root/pkg/api/server/swagger.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-02-02 12:34:51 -0600
committerBrent Baude <bbaude@redhat.com>2020-02-03 12:40:01 -0600
commit81296cba829622a313ba38624548e3214d2164fc (patch)
tree880604b0944b62694ea1a037982cf572b735edd1 /pkg/api/server/swagger.go
parent23f795786224c27f737e9043e9d513f54fa35ba8 (diff)
downloadpodman-81296cba829622a313ba38624548e3214d2164fc.tar.gz
podman-81296cba829622a313ba38624548e3214d2164fc.tar.bz2
podman-81296cba829622a313ba38624548e3214d2164fc.zip
[CI:DOCS]add apiv2 endpoints for exec
add the openapi/swagger documentation for exec. The subcommands added are create, inspect, resize, and start. at the time of this writing, no structure is declared for the inspect response. once the libpod work for this is complete, we can inherit and swaggerize it. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/server/swagger.go')
-rw-r--r--pkg/api/server/swagger.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/api/server/swagger.go b/pkg/api/server/swagger.go
index 5098390bc..fc409d816 100644
--- a/pkg/api/server/swagger.go
+++ b/pkg/api/server/swagger.go
@@ -23,6 +23,15 @@ type swagErrNoSuchContainer struct {
}
}
+// No such exec instance
+// swagger:response NoSuchExecInstance
+type swagErrNoSuchExecInstance struct {
+ // in:body
+ Body struct {
+ utils.ErrorModel
+ }
+}
+
// No such volume
// swagger:response NoSuchVolume
type swagErrNoSuchVolume struct {