Skip to content

Commit

Permalink
feat: Add url that exposes taxonomy tags CRUD API
Browse files Browse the repository at this point in the history
Include `content_tagging` namespace for content_tagging urls in cms
for `sub_tags_link` to work in multi-level taxonomy tags.
  • Loading branch information
yusuf-musleh committed Oct 23, 2023
1 parent 7770e51 commit 5c4db12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@

# Content tagging
urlpatterns += [
path('api/content_tagging/', include(('openedx.core.djangoapps.content_tagging.urls'))),
path('api/content_tagging/', include(('openedx.core.djangoapps.content_tagging.urls', 'content_tagging'))),
]

# studio-content-api specific API docs (using drf-spectacular and openapi-v3)
Expand Down
6 changes: 6 additions & 0 deletions openedx/core/djangoapps/content_tagging/rest_api/v1/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from django.urls.conf import path, include

from openedx_tagging.core.tagging.rest_api.v1 import (
views as oel_tagging_views,
views_import as oel_tagging_views_import,
)

Expand All @@ -17,6 +18,11 @@
router.register("object_tags", views.ObjectTagOrgView, basename="object_tag")

urlpatterns = [
path(
"taxonomies/<str:pk>/tags/",
oel_tagging_views.TaxonomyTagsView.as_view(),
name="taxonomy-tags",
),
path(
"taxonomies/import/template.<str:file_ext>",
oel_tagging_views_import.TemplateView.as_view(),
Expand Down

0 comments on commit 5c4db12

Please sign in to comment.