We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
rather than init the api like this:
var ow = openwhisk({api: 'https://openwhisk.ng.bluemix.net/api/v1/', api_key: '...', namespace: 'default_namespace'});
I'd like to suggest a little bit of convenience:
var ow = openwhisk({apihost: 'openwhisk.ng.bluemix.net', api_key: '...', namespace: 'default_namespace'});
where apihost allows one to just provide either the host or host:port. this can be split to determine protocol as in
apihost
host
host:port
var edgeHostParts = apihost.split(':'); var protocol = (edgeHostParts.length >= 2 && edgeHostParts[1] == '443') ? 'https' : 'http'; api = protocol + '://' + apihost + '/api/v1/';
The text was updated successfully, but these errors were encountered:
9c1350d
I've added this functionality as per the use case above.
Sorry, something went wrong.
Merge pull request apache#14 from lzbj/development
7a82ff0
Adjusted the project hierarchy.
jthomas
No branches or pull requests
rather than init the api like this:
I'd like to suggest a little bit of convenience:
where
apihost
allows one to just provide either thehost
orhost:port
.this can be split to determine protocol as in
The text was updated successfully, but these errors were encountered: