from django.urls import include, path

from rest_framework import permissions

from drf_yasg import openapi
from drf_yasg.views import get_schema_view

schema_url_patterns = [
    path(r"^api/", include("config.api_router")),
]

schema_view = get_schema_view(
    openapi.Info(
        title="Poolink API Document",
        default_version="v1",
        description="Poolink API Document",
        # terms_of_service="https://www.google.com/policies/terms/",
        contact=openapi.Contact(email="<EMAIL>"),
        license=openapi.License(name="Copyright <NAME>, <NAME>"),
    ),
    public=True,
    permission_classes=(permissions.AllowAny,),
    patterns=schema_url_patterns,
)

from django.urls import include, path

from rest_framework import permissions

from drf_yasg import openapi
from drf_yasg.views import get_schema_view

schema_url_patterns = [
    path(r"^api/", include("config.api_router")),
]

schema_view = get_schema_view(
    openapi.Info(
        title="Poolink API Document",
        default_version="v1",
        description="Poolink API Document",
        # terms_of_service="https://www.google.com/policies/terms/",
        contact=openapi.Contact(email="<EMAIL>"),
        license=openapi.License(name="Copyright <NAME>, <NAME>"),
    ),
    public=True,
    permission_classes=(permissions.AllowAny,),
    patterns=schema_url_patterns,
)

# terms_of_service="https://www.google.com/policies/terms/",