Exemplo n.º 1
0
def index():
    """
    ---
    get:
      summary: List collections
      description: >-
        Returns a list of collections matching a given query. Returns all the
        collections accessible by a user if no query is given.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                allOf:
                - $ref: '#/components/schemas/QueryResponse'
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/Collection'
      tags:
      - Collection
    """
    result = CollectionsQuery.handle(request)
    return CollectionSerializer.jsonify_result(result)
Exemplo n.º 2
0
def index():
    result = CollectionsQuery.handle(request)
    return CollectionSerializer.jsonify_result(result)
Exemplo n.º 3
0
def index():
    result = CollectionsQuery.handle(request)
    return CollectionSerializer.jsonify_result(result)