Merge pull request #11516 from jelly/swagger/containerstats
[CI:DOCS] Add response to /libpod/containers/stats documentation
This commit is contained in:
commit
cf4a7b8d37
|
|
@ -176,3 +176,12 @@ type swagInspectPodResponse struct {
|
||||||
define.InspectPodData
|
define.InspectPodData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get stats for one or more containers
|
||||||
|
// swagger:response ContainerStats
|
||||||
|
type swagContainerStatsResponse struct {
|
||||||
|
// in:body
|
||||||
|
Body struct {
|
||||||
|
define.ContainerStats
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1124,11 +1124,9 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
||||||
// - application/json
|
// - application/json
|
||||||
// responses:
|
// responses:
|
||||||
// 200:
|
// 200:
|
||||||
// description: no error
|
// $ref: "#/responses/ContainerStats"
|
||||||
// 404:
|
// 404:
|
||||||
// $ref: "#/responses/NoSuchContainer"
|
// $ref: "#/responses/NoSuchContainer"
|
||||||
// 409:
|
|
||||||
// $ref: "#/responses/ConflictError"
|
|
||||||
// 500:
|
// 500:
|
||||||
// $ref: "#/responses/InternalError"
|
// $ref: "#/responses/InternalError"
|
||||||
r.HandleFunc(VersionedPath("/libpod/containers/stats"), s.APIHandler(libpod.StatsContainer)).Methods(http.MethodGet)
|
r.HandleFunc(VersionedPath("/libpod/containers/stats"), s.APIHandler(libpod.StatsContainer)).Methods(http.MethodGet)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue