コード例 #1
0
    def _post(self,
              resource,
              data,
              query_id=None,
              subcategory=None,
              second_query_id=None,
              **options):
        """Queries the REST service and returns the result"""

        if isinstance(query_id, list):
            query_id = ','.join(query_id)

        response = execute(host=self._configuration.host,
                           version=self._configuration.version,
                           sid=self.session_id,
                           category=self._category,
                           method='post',
                           data=data,
                           subcategory=subcategory,
                           query_id=query_id,
                           second_query_id=second_query_id,
                           resource=resource,
                           options=options)

        return OpenCGAResponseList(response, query_id)
コード例 #2
0
ファイル: opencgarestclients.py プロジェクト: wychytu/opencga
 def exec_retry():
     return execute(host=self._cfg.host,
                    version=self._cfg.version,
                    sid=self.session_id,
                    category=self._category,
                    subcategory=subcategory,
                    method=method,
                    query_id=query_ids_str,
                    second_query_id=second_query_id,
                    resource=resource,
                    data=data,
                    options=options)
コード例 #3
0
 def exec_retry():
     return execute(host=self._cfg.host,
                    version=self._cfg.version,
                    sid=self.session_id,
                    category=self._category,
                    subcategory=subcategory,
                    method=method,
                    query_id=query_ids_str,
                    second_query_id=second_query_id,
                    resource=resource,
                    data=data,
                    options=options)