Skip to content

Instantly share code, notes, and snippets.

@jonathan-kosgei
Created May 3, 2017 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathan-kosgei/41a8931acc7b98ea3393f0a334ff5eae to your computer and use it in GitHub Desktop.
Save jonathan-kosgei/41a8931acc7b98ea3393f0a334ff5eae to your computer and use it in GitHub Desktop.
Kubernetes Third Party Path json
{
"/apis/{fqdn}/v1/{resource}": {
"get": {
"security": [
{
"Bearer": [
]
}
],
"summary": "Gets Resources",
"description": "Returns a list of Resources",
"parameters": [
{
"name": "watch",
"uniqueItems": true,
"type": "boolean",
"description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
"in": "query"
},
{
"name": "fqdn",
"in": "path",
"required": true,
"description": "The Third party Resource fqdn",
"type": "string"
},
{
"name": "resource",
"in": "path",
"required": true,
"description": "The Resource type",
"type": "string"
}
],
"responses": {
"200": {
"description": "A list of Resources",
"schema": {
"type": "object"
}
}
}
},
"externalDocs": {
"description": "Complete example on watching a third party resource",
"url": "http://github.com/jonathan-kosgei/kubeResource/watch/README.md"
}
},
"/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": {
"get": {
"security": [
{
"Bearer": [
]
}
],
"summary": "Gets a specific Resource",
"description": "Returns a specific Resource in a namespace",
"parameters": [
{
"name": "namespace",
"in": "path",
"required": true,
"description": "The Resource's namespace",
"type": "string"
},
{
"name": "name",
"in": "path",
"required": true,
"description": "The Resource's name",
"type": "string"
},
{
"name": "fqdn",
"in": "path",
"required": true,
"description": "The Third party Resource fqdn",
"type": "string"
},
{
"name": "resource",
"in": "path",
"required": true,
"description": "The Resource type",
"type": "string"
}
],
"responses": {
"200": {
"description": "A single Resource",
"schema": {
"type": "object"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment