Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django health check endpoints doesnt appear in generated openapi schema #382

Open
style77 opened this issue Sep 27, 2023 · 0 comments
Open

Comments

@style77
Copy link

style77 commented Sep 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant