def list(self, request): """ Implements the GET method for the list endpoint as described in the class docstring. """ form = CommentListGetForm(request.GET) if not form.is_valid(): raise ValidationError(form.errors) return get_comment_list(request, form.cleaned_data["thread_id"], form.cleaned_data["endorsed"], form.cleaned_data["page"], form.cleaned_data["page_size"])
def list(self, request): """ Implements the GET method for the list endpoint as described in the class docstring. """ form = CommentListGetForm(request.GET) if not form.is_valid(): raise ValidationError(form.errors) return get_comment_list( request, form.cleaned_data["thread_id"], form.cleaned_data["endorsed"], form.cleaned_data["page"], form.cleaned_data["page_size"], )