k3s/api/openapi-spec/v2alpha1.batch.json

81 lines
2.0 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "Kubernetes /apis/batch/v2alpha1",
"version": "unversioned"
},
"paths": {
"/apis/batch/v2alpha1/": {
"get": {
"description": "get available resources",
"consumes": [
"application/json",
"application/yaml",
"application/vnd.kubernetes.protobuf"
],
"produces": [
"application/json",
"application/yaml",
"application/vnd.kubernetes.protobuf"
],
"schemes": [
"https"
],
"operationId": "getAPIResources",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/unversioned.APIResourceList"
}
}
}
}
}
},
"definitions": {
"unversioned.APIResource": {
"description": "APIResource specifies the name of a resource and whether it is namespaced.",
"required": [
"name",
"namespaced",
"kind"
],
"properties": {
"kind": {
"description": "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')",
"type": "string"
},
"name": {
"description": "name is the name of the resource.",
"type": "string"
},
"namespaced": {
"description": "namespaced indicates if a resource is namespaced or not.",
"type": "boolean"
}
}
},
"unversioned.APIResourceList": {
"description": "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.",
"required": [
"groupVersion",
"resources"
],
"properties": {
"groupVersion": {
"description": "groupVersion is the group and version this APIResourceList is for.",
"type": "string"
},
"resources": {
"description": "resources contains the name of the resources and if they are namespaced.",
"type": "array",
"items": {
"$ref": "#/definitions/unversioned.APIResource"
}
}
}
}
}
}