File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed
Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1313# all_blogger_blogs.register('blogs', OwnerBlogListVSet, 'blogs')
1414
1515
16-
1716comment_router = NestedDefaultRouter (all_blogger_blogs , 'blog' , lookup = 'blog' )
1817comment_router .register ('comments' , CommentVSet , basename = 'comments' )
1918
Original file line number Diff line number Diff line change 6363ROOT_URLCONF = 'core.urls'
6464
6565
66- SWAGGER_SETTINGS = {"DEFAULT_AUTO_SCHEMA_CLASS" : "blogapp.swagger_schema.CustomAutoSchema" }
66+ SWAGGER_SETTINGS = {
67+ "DEFAULT_AUTO_SCHEMA_CLASS" : "blogapp.swagger_schema.CustomAutoSchema" ,
68+ "LOGIN_URL" : 'admin/' ,
69+ "LOGOUT_URL" :'admin/logout' ,
70+ "OPERATIONS_SORTER" :'method' ,
71+ "TAGS_SORTER" :'alpha' ,
72+ "DOC_EXPANSION" :"none" ,
73+ }
6774
6875TEMPLATES = [
6976 {
135142 ),
136143 'DEFAULT_PERMISSION_CLASSES' : [
137144 'rest_framework.permissions.IsAuthenticatedOrReadOnly' ,
138- ]
145+ ],
146+ 'DEFAULT_PAGINATION_CLASS' : 'rest_framework.pagination.PageNumberPagination' ,
147+ 'PAGE_SIZE' : 5 ,
139148}
140149
141150SIMPLE_JWT = {
Original file line number Diff line number Diff line change 2828 openapi .Info (
2929 title = "Blogapp API" ,
3030 default_version = 'v1' ,
31- description = "Test description" ,
31+ description = """
32+ # This is the `Blogapp API` documentation
33+
34+ > ### Here all the api routes are grouped by tags
35+
36+ """ ,
3237 # terms_of_service="https://www.google.com/policies/terms/",
3338 # contact=openapi.Contact(email="pritam.chk98@gmail.com"),
3439 # license=openapi.License(name="BSD License"),
You can’t perform that action at this time.
0 commit comments