Files
edx-platform/openedx/core/openapi.py
Ned Batchelder 135cbe76d8 yasg settings
2019-06-10 15:27:39 -04:00

21 lines
647 B
Python

"""
Open API support.
"""
from rest_framework import permissions
from drf_yasg.views import get_schema_view
from drf_yasg import openapi
schema_view = get_schema_view(
openapi.Info(
title="Open edX API",
default_version="v1",
description="APIs for access to Open edX information",
#terms_of_service="https://www.google.com/policies/terms/", # TODO: Do we have these?
contact=openapi.Contact(email="oscm@edx.org"),
#license=openapi.License(name="BSD License"), # TODO: What does this mean?
),
public=True,
permission_classes=(permissions.AllowAny,),
)