From 69bce1aeb2c7da500dce711ec87979a310761255 Mon Sep 17 00:00:00 2001 From: Ebbe Elsborg Date: Wed, 21 Jun 2017 12:37:32 +0200 Subject: [PATCH] Parametrize resource path with 'version' parameter Add parameter 'name' to update operation --- scripts/thirdpartypaths.json | 41 +++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/scripts/thirdpartypaths.json b/scripts/thirdpartypaths.json index 6ea79f0d2..f7d71adff 100644 --- a/scripts/thirdpartypaths.json +++ b/scripts/thirdpartypaths.json @@ -1,5 +1,5 @@ { - "/apis/{fqdn}/v1/{resource}": { + "/apis/{fqdn}/{version}/{resource}": { "get": { "operationId": "listThirdPartyResource", "summary": "Gets Resources", @@ -22,6 +22,13 @@ "description": "The Third party Resource fqdn", "type": "string" }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The Third party Resource version", + "type": "string" + }, { "name": "resource", "in": "path", @@ -40,7 +47,7 @@ } } }, - "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}": { + "/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}": { "post": { "operationId": "createThirdPartyResource", "summary": "Create a Resource", @@ -63,6 +70,13 @@ "description": "The Third party Resource fqdn", "type": "string" }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The Third party Resource version", + "type": "string" + }, { "name": "resource", "in": "path", @@ -90,7 +104,7 @@ } } }, - "/apis/{fqdn}/v1/namespaces/{namespace}/{resource}/{name}": { + "/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}": { "get": { "operationId": "getThirdPartyResource", "summary": "Gets a specific Resource", @@ -120,6 +134,13 @@ "description": "The Third party Resource fqdn", "type": "string" }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The Third party Resource version", + "type": "string" + }, { "name": "resource", "in": "path", @@ -199,6 +220,13 @@ "description": "The Resource's namespace", "type": "string" }, + { + "name": "name", + "in": "path", + "required": true, + "description": "The Resource's name", + "type": "string" + }, { "name": "fqdn", "in": "path", @@ -206,6 +234,13 @@ "description": "The Third party Resource fqdn", "type": "string" }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The Third party Resource version", + "type": "string" + }, { "name": "resource", "in": "path",