semtk3.restclient module

class semtk3.restclient.RestClient(baseURL, service=None)

Bases: object

post(endpoint, dataObj={}, files=None)

basic POST endpoint - string dataObj - dict will be converted to json for the post (default {})

returns string - response content raises RestException if response is not OK

raise_exception(msg)
to_json_array(to_jsonable_list)
exception semtk3.restclient.RestException

Bases: Exception

Exception for errors from rest endpoints