Ejemplo n.º 1
0
    def test_transform_post(self):
        """Test case for transform_post

        
        """
        query = TransformerQuery()
        response = self.client.open('/expression_correlation/transform',
                                    method='POST',
                                    data=json.dumps(query),
                                    content_type='application/json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
Ejemplo n.º 2
0
def transform_post(query):  # noqa: E501
    """transform_post

     # noqa: E501

    :param query: Performs transformer query.
    :type query: dict | bytes

    :rtype: List[GeneInfo]
    """
    if connexion.request.is_json:
        query = TransformerQuery.from_dict(connexion.request.get_json())  # noqa: E501
    return expand(query)