REST_FRAMEWORK = {
    'COERCE_DECIMAL_TO_STRING': False,
    'DEFAULT_PERMISSION_CLASSES': [
        'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
    ],
    'DEFAULT_RENDERER_CLASSES': [
        'config.apis.renderers.DefaultRenderer',
    ],
    'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',

}

CORS_ALLOW_ALL_ORIGINS = True

CORS_ORIGIN_ALLOW_HEADER = [
    'username',
    'group',
    'accept',
    'accept-encoding',
    'authorization',
    'content-type',
    'dnt',
    'origin',
    'user-agent',
    'x-csrftoken',
    'x-requested-with',
]

CORS_ALLOW_HEADERS = '*'

CORS_ALLOW_METHODS = [
    'DELETE',
    'GET',
    'OPTIONS',
    'PATCH',
    'POST',
    'PUT',
]

SPECTACULAR_SETTINGS = {
    'TITLE': 'GamaEducation API',
   'DESCRIPTION': """
    GamaEducation is a Bangladeshi smart service venture which has introduced a comprehensive service delivery platform exclusive for IT within the country.

    Our platform offers a range of services including:
    
    - Veterinary care
    - Online pet supplies shopping
    - Appointment scheduling

    For more information, please visit our [website](https://www.gamaeducation.com/).
    """,
    'SERVE_INCLUDE_SCHEMA': False,   
    'SCHEMA_PATH_PREFIX': r'/api/v[0-9].[0-9]',

        'TAGS': [
        {'name': 'Base', 'description': 'Endpoints related to base.'},
        {'name': 'Projects', 'description': 'Endpoints related to Projects.'},
    ],

}
