Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rest_framework/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from django.utils.encoding import smart_str
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
from django.http import JsonResponse

from rest_framework import exceptions, status
from rest_framework.request import Request
Expand All @@ -20,6 +21,8 @@
from rest_framework.utils import formatting


def health_check(request):
return JsonResponse({"status": "ok"})
def get_view_name(view):
"""
Given a view instance, return a textual name to represent the view.
Expand Down
Loading