def get(self, request, format=None):
action = request.query_params.get('<STR_LIT:action>', '<STR_LIT>')<EOL>action = action if action == '<STR_LIT:count>' or action == '<STR_LIT:all>' else '<STR_LIT>'<EOL>mark_as_read = request.query_params.get('<STR_LIT>', '<STR_LIT:true>') == '<STR_LIT:true>'<EOL>notifications = self.get_queryset().filter(to_user=request.user)<EOL>return getattr(self, '<STR_LIT>' % action)(request, notifications, mark_as_read)<EOL>
get HTTP method