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
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// responses:
|
||||
// 200:
|
||||
// description: no error
|
||||
// $ref: "#/responses/ContainerStats"
|
||||
// 404:
|
||||
// $ref: "#/responses/NoSuchContainer"
|
||||
// 409:
|
||||
// $ref: "#/responses/ConflictError"
|
||||
// 500:
|
||||
// $ref: "#/responses/InternalError"
|
||||
r.HandleFunc(VersionedPath("/libpod/containers/stats"), s.APIHandler(libpod.StatsContainer)).Methods(http.MethodGet)
|
||||
|
|
|
|||
Loading…
Reference in New Issue