(basepath string)
| 134 | } |
| 135 | |
| 136 | func isBasepathParameterized(basepath string) (error, bool) { |
| 137 | hasParams, err := hasPathParameters(basepath) |
| 138 | if hasParams || err != nil { |
| 139 | errMsg := wski18n.T("The base path '{{.path}}' cannot have parameters. Only the relative path supports path parameters.", |
| 140 | map[string]interface{}{"path": basepath}) |
| 141 | whiskErr := whisk.MakeWskError(errors.New(errMsg), whisk.EXIT_CODE_ERR_GENERAL, |
| 142 | whisk.DISPLAY_MSG, whisk.DISPLAY_USAGE) |
| 143 | return whiskErr, false |
| 144 | } |
| 145 | return nil, true |
| 146 | } |
| 147 | |
| 148 | /* |
| 149 | * Pull the managedUrl (external API URL) from the API configuration |
no test coverage detected