It's really inconvenient to keep manually setting the domain on IBM Cloud's web UI for this. Seems their API already supports being able to do this. It's just not the most intuitive way.
If the plug-in generates the minimal swagger doc and uploads it instead of posting individual routes it could remove an api request per route. It could also pave the way for supporting custom domains.
I'm fairly new to node.js that's why there's no PR yet. Hoping somebody could add the support.
It's really inconvenient to keep manually setting the domain on IBM Cloud's web UI for this. Seems their API already supports being able to do this. It's just not the most intuitive way.
I've managed to be able to hack it up by:
manually getting the routes after deploy
picking the first one under
routes.apis
and slicing the swagger doc part.then deleting the routes again and putting them back using the modified swagger doc ( https://github.com/apache/incubator-openwhisk-client-js#add-route-swagger)
If the plug-in generates the minimal swagger doc and uploads it instead of posting individual routes it could remove an api request per route. It could also pave the way for supporting custom domains.
I'm fairly new to node.js that's why there's no PR yet. Hoping somebody could add the support.