from django.urls import path from blog.api.views import (api_detail_blog_view, api_update_blog_view, api_delete_blog_view, api_create_blog_view, ApiBlogListView) app_name = 'blog' urlpatterns = [ path('<slug>/', api_detail_blog_view, name="detail"), path('<slug>/update', api_update_blog_view, name="update"), path('<slug>/delete', api_delete_blog_view, name="delete"), path('create', api_create_blog_view, name="create"), path('list', ApiBlogListView.as_view(), name="list"), ]
from django.urls import path from blog.api.views import (api_detail_blog_view, api_update_blog_view, api_delete_blog_view, api_create_blog_view, ApiBlogListView, ApiBlogSearchView) app_name = 'blog-api' urlpatterns = [ path('<slug>/', api_detail_blog_view, name='detail-api'), path('<slug>/update/', api_update_blog_view, name='update-api'), path('<slug>/delete/', api_delete_blog_view, name='delete-api'), path('create', api_create_blog_view, name='create-api'), path('list', ApiBlogListView.as_view(), name='list-api'), #bcoz it is class based view path('search', ApiBlogSearchView.as_view(), name='search-api'), ]
api_check_blog_personal_collection, api_add_personal_collection, api_delete_from_personal_collection, api_get_personal_collection, api_get_blog_parameters, api_get_blog_body, ) app_name = 'blog' urlpatterns = [ path('<slug>/', api_detail_blog_view, name="detail"), path('<slug>/update', api_update_blog_view, name="update"), path('<slug>/delete', api_delete_blog_view, name="delete"), path('create', api_create_blog_view, name="create"), path('blog-list', ApiBlogListView.as_view(), name="blog-list"), path('reference-list', ApiReferenceListView.as_view(), name="reference-list"), path('comment-list', ApiCommentByUserListView.as_view(), name="comment-list-user"), path('<slug>/getcomment', ApiCommentByBlogListView.as_view(), name="blog-comment-list"), path('<slug>/addcomment', add_comment, name="add_comment"), path('<slug>/<commentid>/deletecomment', delete_comment, name="delete_comment"), path('<slug>/vote', toggle_blog_vote, name="blog_vote"), path('<slug>/blog_up_vote', blog_up_vote, name="blog_up_vote"), path('<slug>/blog_down_vote', blog_down_vote, name="blog_down_vote"), path('<slug>/has_voted', has_voted, name="has_voted"), path('get_personal_collection', api_get_personal_collection, name="get_personal_collection"), path('<slug>/add_to_collection', api_add_personal_collection, name="add_to_collection"), path('<slug>/remove_from_collection', api_delete_from_personal_collection, name="remove_from_collection"), path('<slug>/check_in_collection', api_check_blog_personal_collection, name="check_in_collection"), path('<slug>/get_blog_parameters', api_get_blog_parameters, name="get_blog_parameters"), path('<slug>/get_blog_body', api_get_blog_body, name="get_blog_body"),
from django.urls import path from blog.api.views import (api_detail_blog_view, api_create_blog_view, api_update_blog_view, api_delete_blog_view, api_is_author_of_blogpost, ApiBlogListView) app_name = 'blog' urlpatterns = [ path('<slug>/', api_detail_blog_view, name='detail'), path('<slug>/update', api_update_blog_view, name='update'), path('create', api_create_blog_view, name='create'), path('<slug>/delete', api_delete_blog_view, name='delete'), path('list', ApiBlogListView.as_view(), name='list'), path('<slug>/is_author', api_is_author_of_blogpost, name="is_author"), ]
from django.urls import path from blog.api.views import ( ApiBlogListView, ApiDonateListView, ) app_name = 'blog' urlpatterns = [ path('blog/', ApiBlogListView.as_view(), name="detail"), path('donate/', ApiDonateListView.as_view(), name="create"), ]