def get(self, request, offset: int): limit = request.GET.get('limit', 25) searchQuery = request.GET.get('searchText', '') sorter = json.loads(request.GET.get('sorter', '{}')) _filter = json.loads(request.GET.get('filter', '{}')) res = NotebookJobServices.getNotebooks(offset, limit, searchQuery, sorter, _filter) return Response(res.json())
def get(self, request, offset: int): res = NotebookJobServices.getNotebooks(offset) return Response(res.json())