You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/08/28 16:11:44 UTC

[GitHub] houshengbo commented on issue #25: Not adding "api" to the URL

houshengbo commented on issue #25: Not adding "api" to the URL 
URL: https://github.com/apache/incubator-openwhisk-client-go/issues/25#issuecomment-325398907
 
 
   @tleyden I plan to remove openwhisk.ng.bluemix.net as the default URL. Instead, credentials are now able to load in .wskprops, and then whisk.properties if there is a local deployment of openwhisk.
   
   BaseURL will deprecate, since we only need to configure apiHost. BaseURL can be generated from apiHost. If a user creates the *config, they can proceed without hassle by at least setting namespace, auth and apihost for whisk.NewClient.
   
   BTW, the following methods have already been supported to get the config:
   ```
   func GetDefaultConfig() (*Config, error)   // from .wskprops, if not, whisk.properties
   
   func GetWhiskPropertiesConfig() (*Config, error)  //from whisk.properties
   
   func GetWskpropsConfig(path string) (*Config, error)  // from .wskprops
   ```
   please check https://github.com/apache/incubator-openwhisk-client-go/blob/master/whisk/wskprops.go.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services