def documents(id): enable_cache() entity = get_index_entity(id, request.authz.READ) result = EntityDocumentsQuery.handle(request, entity=entity, schema=CombinedSchema) return jsonify(result)
def documents(id): enable_cache() entity, _ = get_entity(id, request.authz.READ) result = EntityDocumentsQuery.handle_request(request, entity=entity, schema=DocumentSchema) return jsonify(result)