diff --git a/rest_framework/views.py b/rest_framework/views.py index 327ebe9032..9484b75779 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -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 @@ -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. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy