mirror of https://github.com/k3s-io/k3s
78 lines
1.3 KiB
JSON
78 lines
1.3 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "Kubernetes /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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|