88 lines
1.9 KiB
JSON
88 lines
1.9 KiB
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Kubernetes",
|
|
"version": "v1.23.0"
|
|
},
|
|
"paths": {
|
|
"/version/": {
|
|
"get": {
|
|
"tags": [
|
|
"version"
|
|
],
|
|
"description": "get the code version",
|
|
"operationId": "getCodeVersion",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.version.Info"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"io.k8s.apimachinery.pkg.version.Info": {
|
|
"description": "Info contains versioning information. how we'll want to distribute that information.",
|
|
"type": "object",
|
|
"required": [
|
|
"major",
|
|
"minor",
|
|
"gitVersion",
|
|
"gitCommit",
|
|
"gitTreeState",
|
|
"buildDate",
|
|
"goVersion",
|
|
"compiler",
|
|
"platform"
|
|
],
|
|
"properties": {
|
|
"buildDate": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"compiler": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"gitCommit": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"gitTreeState": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"gitVersion": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"goVersion": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"major": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"minor": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"platform": {
|
|
"type": "string",
|
|
"default": ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|