revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.

Home Page:https://readthedocs.org/projects/django-health-check/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django health check endpoints doesnt appear in generated openapi schema

style77 opened this issue · comments

Hey,
I'm not sure if that's and issue with this module or with DRF itself (or maybe it's not even implemented), but when i use python manage.py generateschema --file openapi-schema.yml the /health endpoints doesn't appear to be in the schema.

urlpatterns = [
    path(r"api/v1/", include("authorization.urls")),
    path(r"api/v1/health/", include("health_check.urls")),
    path(
        r"api/v1/openapi",
        get_schema_view(
            title="Newsltr",
            description="Documentation for Newsltr API",
            version="1.0.0",
        ),
        name="openapi-schema",
    ),
]

That's how my root urls.py looks like.

Thank you.