2016-09-28 02:56:07 -04:00
{
"swagger" : "2.0" ,
"info" : {
2016-10-05 19:03:18 -04:00
"title" : "Kubernetes /apis/batch/v2alpha1" ,
2016-09-28 02:56:07 -04:00
"version" : "unversioned"
} ,
"paths" : {
2016-10-05 19:03:18 -04:00
"/apis/batch/v2alpha1/" : {
2016-09-28 02:56:07 -04:00
"get" : {
2016-10-05 19:03:18 -04:00
"description" : "get available resources" ,
2016-09-28 02:56:07 -04:00
"consumes" : [
"application/json" ,
"application/yaml" ,
"application/vnd.kubernetes.protobuf"
] ,
"produces" : [
"application/json" ,
"application/yaml" ,
"application/vnd.kubernetes.protobuf"
] ,
"schemes" : [
"https"
] ,
2016-10-05 19:03:18 -04:00
"operationId" : "getAPIResources" ,
2016-09-28 02:56:07 -04:00
"responses" : {
"200" : {
"description" : "OK" ,
"schema" : {
2016-10-05 19:03:18 -04:00
"$ref" : "#/definitions/unversioned.APIResourceList"
2016-09-28 02:56:07 -04:00
}
}
}
}
}
} ,
"definitions" : {
2016-10-05 19:03:18 -04:00
"unversioned.APIResource" : {
"description" : "APIResource specifies the name of a resource and whether it is namespaced." ,
2016-09-28 02:56:07 -04:00
"required" : [
"name" ,
2016-10-05 19:03:18 -04:00
"namespaced" ,
"kind"
2016-09-28 02:56:07 -04:00
] ,
"properties" : {
2016-10-05 19:03:18 -04:00
"kind" : {
"description" : "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')" ,
2016-09-28 02:56:07 -04:00
"type" : "string"
} ,
2016-10-05 19:03:18 -04:00
"name" : {
"description" : "name is the name of the resource." ,
"type" : "string"
2016-09-28 02:56:07 -04:00
} ,
2016-10-05 19:03:18 -04:00
"namespaced" : {
"description" : "namespaced indicates if a resource is namespaced or not." ,
"type" : "boolean"
2016-09-28 02:56:07 -04:00
}
}
} ,
2016-10-05 19:03:18 -04:00
"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." ,
2016-09-28 02:56:07 -04:00
"required" : [
"groupVersion" ,
2016-10-05 19:03:18 -04:00
"resources"
2016-09-28 02:56:07 -04:00
] ,
"properties" : {
"groupVersion" : {
2016-10-05 19:03:18 -04:00
"description" : "groupVersion is the group and version this APIResourceList is for." ,
2016-09-28 02:56:07 -04:00
"type" : "string"
} ,
2016-10-05 19:03:18 -04:00
"resources" : {
"description" : "resources contains the name of the resources and if they are namespaced." ,
"type" : "array" ,
"items" : {
"$ref" : "#/definitions/unversioned.APIResource"
}
2016-09-28 02:56:07 -04:00
}
}
}
}
}