Django health check endpoints doesnt appear in generated openapi schema
style77 opened this issue · comments
Joachim Hodana commented
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.