Set expected response headers for Ping.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 17f9f5abf4cdf72ce6b5f8f2f69e5a872c6a3b56
Component: engine
This commit is contained in:
Daniel Nephin
2017-01-03 11:47:47 -05:00
parent f43a9bc718
commit 2678d8d52e
5 changed files with 15 additions and 10 deletions
+12 -6
View File
@@ -857,7 +857,7 @@ definitions:
- Os
- Size
- VirtualSize
- GraphDrvier
- GraphDriver
- RootFS
properties:
Id:
@@ -4600,6 +4600,7 @@ paths:
Created: "2015-09-10T08:30:53.26995814Z"
GraphDriver:
Name: "aufs"
Data: {}
RepoDigests:
- "localhost:5000/test/busybox/example@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf"
RepoTags:
@@ -5218,8 +5219,7 @@ paths:
summary: "Get version"
description: "Returns the version of Docker that is running and various information about the system that Docker is running on."
operationId: "SystemVersion"
produces:
- "application/json"
produces: ["application/json"]
responses:
200:
description: "no error"
@@ -5268,14 +5268,20 @@ paths:
summary: "Ping"
description: "This is a dummy endpoint you can use to test if the server is accessible."
operationId: "SystemPing"
produces:
- "text/plain"
produces: ["text/plain"]
responses:
200:
description: "no error"
schema:
type: "string"
example: "OK"
headers:
API-Version:
type: "string"
description: "Max API Version the server supports"
Docker-Experimental:
type: "boolean"
description: "If the server is running with experimental mode enabled"
500:
description: "server error"
schema:
@@ -7402,7 +7408,7 @@ paths:
200:
description: "no error"
schema:
$ref: "#/definitions/ImageDeleteResponse"
$ref: "#/definitions/ServiceUpdateResponse"
400:
description: "bad parameter"
schema:
@@ -4,7 +4,7 @@ package container
// DO NOT EDIT THIS FILE
// This file was generated by `swagger generate operation`
//
// See hack/swagger-gen.sh
// See hack/generate-swagger-api.sh
// ----------------------------------------------------------------------------
// ContainerChangeResponseItem container change response item
@@ -4,7 +4,7 @@ package container
// DO NOT EDIT THIS FILE
// This file was generated by `swagger generate operation`
//
// See hack/swagger-gen.sh
// See hack/generate-swagger-api.sh
// ----------------------------------------------------------------------------
// ContainerTopOKBody container top o k body
@@ -4,7 +4,7 @@ package image
// DO NOT EDIT THIS FILE
// This file was generated by `swagger generate operation`
//
// See hack/swagger-gen.sh
// See hack/generate-swagger-api.sh
// ----------------------------------------------------------------------------
// HistoryResponseItem history response item
-1
View File
@@ -93,7 +93,6 @@ type ContainerStats struct {
OSType string `json:"ostype"`
}
// Ping contains response of Engine API:
// GET "/_ping"
type Ping struct {