Framework for maintaining Watson Assistant data in github repository with bundle of tools for generating, testing and uploading. Travis: https://travis-ci.com/IBM/watson-assistant-workbench. Artifactory (will be deleted after 25 Nov 2019): https://na.artifactory.swg-devops.com/artifactory/webapp/#/artifacts/browse/tree/General/iot-waw-trevis-generic-local.
Our approach now:
The problem is, that the response might not even have any JSON in it. A better approach is to do:
This raises an exception if the status of the response is 400 and higher. If the request is successful, the script continues.