Created
May 3, 2017 06:47
-
-
Save jonathan-kosgei/41a8931acc7b98ea3393f0a334ff5eae to your computer and use it in GitHub Desktop.
Kubernetes Third Party Path json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"/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