Files
kubernetes/federation/apis/openapi-spec/version.json
2016-10-22 02:43:42 -07:00

96 lines
1.8 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "Generic API Server /version",
"version": "unversioned"
},
"paths": {
"/version/": {
"get": {
"description": "get the code version",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"schemes": [
"https"
],
"operationId": "getCodeVersion",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/version.Info"
}
}
}
}
}
},
"definitions": {
"version.Info": {
"description": "Info contains versioning information. how we'll want to distribute that information.",
"required": [
"major",
"minor",
"gitVersion",
"gitCommit",
"gitTreeState",
"buildDate",
"goVersion",
"compiler",
"platform"
],
"properties": {
"buildDate": {
"type": "string"
},
"compiler": {
"type": "string"
},
"gitCommit": {
"type": "string"
},
"gitTreeState": {
"type": "string"
},
"gitVersion": {
"type": "string"
},
"goVersion": {
"type": "string"
},
"major": {
"type": "string"
},
"minor": {
"type": "string"
},
"platform": {
"type": "string"
}
}
}
},
"securityDefinitions": {
"HTTPBasic": {
"description": "HTTP Basic authentication",
"type": "basic"
},
"LoopbackTokenBearer": {
"description": "LoopbackToken Bearer authentication",
"type": "apiKey",
"name": "authorization",
"in": "header"
},
"TokenBearer": {
"description": "Token Bearer authentication",
"type": "apiKey",
"name": "authorization",
"in": "header"
}
}
}