<filename>backend/my-app/views.py<gh_stars>0
# from rest_framework.decorators import api_view, renderer_classes
# from rest_framework import response, schemas
# from rest_framework_swagger.renderers import OpenAPIRenderer, SwaggerUIRenderer


# @api_view()
# @renderer_classes([OpenAPIRenderer, SwaggerUIRenderer])
# def schema_view(request):
#     generator = schemas.SchemaGenerator(title='Bookings API')
#     return response.Response(generator.get_schema(request=request))
<filename>backend/my-app/views.py<gh_stars>0
# from rest_framework.decorators import api_view, renderer_classes
# from rest_framework import response, schemas
# from rest_framework_swagger.renderers import OpenAPIRenderer, SwaggerUIRenderer


# @api_view()
# @renderer_classes([OpenAPIRenderer, SwaggerUIRenderer])
# def schema_view(request):
#     generator = schemas.SchemaGenerator(title='Bookings API')
#     return response.Response(generator.get_schema(request=request))
# from rest_framework.decorators import api_view, renderer_classes # from rest_framework import response, schemas # from rest_framework_swagger.renderers import OpenAPIRenderer, SwaggerUIRenderer # @api_view() # @renderer_classes([OpenAPIRenderer, SwaggerUIRenderer]) # def schema_view(request): #     generator = schemas.SchemaGenerator(title='Bookings API') #     return response.Response(generator.get_schema(request=request))