tmp/src/things/things.py
def getSchemaContent(self, schemaId, draft=False):
        """
        Get the content for a schema.  Parameters: schemaId (string), draft (boolean). Throws APIException on failure.
        """
        if draft:
            req = ApiClient.oneSchemaContentUrl % (self.host, "/draft", schemaId)
        else:
            req = ApiClient.oneSchemaContentUrl % (self.host, "", schemaId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("Schema content retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting schema content", resp)
        return resp.json()
def getSchemaContent(self, schemaId, draft=False):
        """
        Get the content for a schema.  Parameters: schemaId (string), draft (boolean). Throws APIException on failure.
        """
        if draft:
            req = ApiClient.oneSchemaContentUrl % (self.host, "/draft", schemaId)
        else:
            req = ApiClient.oneSchemaContentUrl % (self.host, "", schemaId)
        resp = requests.get(req, auth=self.credentials, verify=self.verify)
        if resp.status_code == 200:
            self.logger.debug("Schema content retrieved")
        else:
            raise ibmiotf.APIException(resp.status_code, "HTTP error getting schema content", resp)
        return resp.json()
Get the content for a schema.  Parameters: schemaId (string), draft (boolean). Throws APIException on failure.