From 3153c25ad5d03616ba8fd82db85720d5ab5afb94 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Tue, 15 Sep 2015 20:36:51 -0700 Subject: [PATCH] Remove an asterix from the path parameter --- api/swagger-spec/v1.json | 48 +++++++++++++++++----------------- pkg/apiserver/api_installer.go | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index cfadfdf252..636e496b69 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -3095,7 +3095,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -3125,7 +3125,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -3155,7 +3155,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -3185,7 +3185,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -3215,7 +3215,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -3245,7 +3245,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -5128,7 +5128,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -5166,7 +5166,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -5204,7 +5204,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -5242,7 +5242,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -5280,7 +5280,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -5318,7 +5318,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -6432,7 +6432,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -6478,7 +6478,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -6524,7 +6524,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -6570,7 +6570,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -6616,7 +6616,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -6662,7 +6662,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -10426,7 +10426,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -10464,7 +10464,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -10502,7 +10502,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -10540,7 +10540,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -10578,7 +10578,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false @@ -10616,7 +10616,7 @@ { "type": "string", "paramType": "path", - "name": "path:*", + "name": "path", "description": "path to the resource", "required": true, "allowMultiple": false diff --git a/pkg/apiserver/api_installer.go b/pkg/apiserver/api_installer.go index c278cd44d4..7735452342 100644 --- a/pkg/apiserver/api_installer.go +++ b/pkg/apiserver/api_installer.go @@ -260,7 +260,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag allowWatchList := isWatcher && isLister // watching on lists is allowed only for kinds that support both watch and list. scope := mapping.Scope nameParam := ws.PathParameter("name", "name of the "+kind).DataType("string") - pathParam := ws.PathParameter("path:*", "path to the resource").DataType("string") + pathParam := ws.PathParameter("path", "path to the resource").DataType("string") params := []*restful.Parameter{} actions := []action{}