@assets.route('<STR_LIT>', methods=['<STR_LIT:GET>'])<EOL>def query_text():
data = request.args<EOL>assert isinstance(data, dict), '<STR_LIT>'<EOL>search_model = FullTextModel(text=data.get('<STR_LIT:text>', None),<EOL>sort=None if data.get('<STR_LIT>', None) is None else json.loads(<EOL>data.get('<STR_LIT>', None)),<EOL>offset=int(data.get('<STR_LIT>', <NUM_LIT:100>)),<EOL>page=int(data.get('<STR_LIT>', <NUM_LIT:1>)))<EOL>query_result = dao.query(search_model)<EOL>for i in query_result[<NUM_LIT:0>]:<EOL><INDENT>_sanitize_record(i)<EOL><DEDENT>response = _make_paginate_response(query_result, search_model)<EOL>return Response(json.dumps(response, default=_my_converter), <NUM_LIT:200>,<EOL>content_type='<STR_LIT:application/json>')<EOL>
Get a list of DDOs that match with the given text.
    ---
    tags:
      - ddo
    parameters:
      - name: text
        in: query
        description: ID of the asset.
        required: true
        type: string
      - name: sort
        in: query
        type: object
        description: Key or list of keys to sort the result
        example: {"value":1}
      - name: offset
        in: query
        type: int
        description: Number of records per page
        example: 100
      - name: page
        in: query
        type: int
        description: Page showed
        example: 1
    responses:
      200:
        description: successful action