|
|
|
@ -221,6 +221,14 @@ class BookAuthorListView(ListAPIView): |
|
|
|
pagination_class = StandardResultsSetPagination |
|
|
|
permission_classes = [AllowAny] |
|
|
|
|
|
|
|
@swagger_auto_schema( |
|
|
|
operation_summary="List Book Authors", |
|
|
|
operation_description="Returns a paginated list of book authors.", |
|
|
|
tags=['Dobodbi - Hadis (V2)'], |
|
|
|
) |
|
|
|
def get(self, request, *args, **kwargs): |
|
|
|
return super().get(request, *args, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
class BookAuthorDetailView(RetrieveAPIView): |
|
|
|
""" |
|
|
|
@ -232,6 +240,14 @@ class BookAuthorDetailView(RetrieveAPIView): |
|
|
|
lookup_url_kwarg = 'author_slug' |
|
|
|
permission_classes = [AllowAny] |
|
|
|
|
|
|
|
@swagger_auto_schema( |
|
|
|
operation_summary="Book Author Detail", |
|
|
|
operation_description="Returns detailed information about a specific book author.", |
|
|
|
tags=['Dobodbi - Hadis (V2)'], |
|
|
|
) |
|
|
|
def get(self, request, *args, **kwargs): |
|
|
|
return super().get(request, *args, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
class AuthorReferencesListView(ListAPIView): |
|
|
|
""" |
|
|
|
@ -241,6 +257,14 @@ class AuthorReferencesListView(ListAPIView): |
|
|
|
pagination_class = StandardResultsSetPagination |
|
|
|
permission_classes = [AllowAny] |
|
|
|
|
|
|
|
@swagger_auto_schema( |
|
|
|
operation_summary="Author References List", |
|
|
|
operation_description="Returns a paginated list of book references for a specific author.", |
|
|
|
tags=['Dobodbi - Hadis (V2)'], |
|
|
|
) |
|
|
|
def get(self, request, *args, **kwargs): |
|
|
|
return super().get(request, *args, **kwargs) |
|
|
|
|
|
|
|
def get_queryset(self): |
|
|
|
author_slug = self.kwargs.get('author_slug') |
|
|
|
|
|
|
|
|