<s> import json <EOL> from rest_framework . response import Response <EOL> from rest_framework . views import APIView <EOL> from cigar_example . restapi import urls <EOL> from rest_framework_docs . docs import DocumentationGenerator <EOL> class ApiDocumentation ( APIView ) : <EOL> """<STR_LIT>""" <EOL> def get ( self , * args , ** kwargs ) : <EOL> docs = DocumentationGenerator ( urls . urlpatterns ) . get_docs ( ) <EOL> return Response ( json . loads ( docs ) ) </s>
