code: def get_tc_api(self, host, headers=None, cert=None, logger=None):
          '''
          Gets HttpApi wrapped into a neat little package that raises TestStepFail
          if expected status code is not returned by the server.
          Default setting for expected status code is 200. Set expected to None when calling methods
          to ignore the expected status code parameter or
          set raiseException = False to disable raising the exception.
          '''
          if logger is None and self.logger:
              logger = self.logger
          return Api(host, headers, cert, loggerf get_tc_api(self, host, headers=None, cert=None, logger=None):
          '''
          Gets HttpApi wrapped into a neat little package that raises TestStepFail
          if expected status code is not returned by the server.
          Default setting for expected status code is 200. Set expected to None when calling methods
          to ignore the expected status code parameter or
          set raiseException = False to disable raising the exception.
          '''
          if logger is None and self.logger:
              logger = self.logger
          return Api(host, headers, cert, logger)
docs: Gets HttpApi wrapped into a neat little package that raises TestStepFail
          if expected status code is not returned by the server.
          Default setting for expected status code is 200. Set expected to None when calling methods
          to ignore the expected status code parameter or
          set raiseException = False to disable raising the exception.