from django.conf.urls import url

from api.identifiers import views

urlpatterns = [
    url(r'^(?P<identifier_id>\w+)/$', views.IdentifierDetail.as_view(), name=views.IdentifierDetail.view_name),
]

from django.conf.urls import url

from api.identifiers import views

urlpatterns = [
    url(r'^(?P<identifier_id>\w+)/$', views.IdentifierDetail.as_view(), name=views.IdentifierDetail.view_name),
    url(r'^(?P<node_id>\w+)/identifiers/$', views.IdentifierList.as_view(), name=views.IdentifierList.view_name),
]

Add identifier list to identifier views for use with embeds in registrations
Add identifier list to identifier views for use with embeds in registrations

[#OSF-6628]

  from django.conf.urls import url
  
  from api.identifiers import views
  
  urlpatterns = [
      url(r'^(?P<identifier_id>\w+)/$', views.IdentifierDetail.as_view(), name=views.IdentifierDetail.view_name),
+     url(r'^(?P<node_id>\w+)/identifiers/$', views.IdentifierList.as_view(), name=views.IdentifierList.view_name),
  ]
  
Add identifier list to identifier views for use with embeds in registrations
## Code Before:
from django.conf.urls import url

from api.identifiers import views

urlpatterns = [
    url(r'^(?P<identifier_id>\w+)/$', views.IdentifierDetail.as_view(), name=views.IdentifierDetail.view_name),
]

## Instruction:
Add identifier list to identifier views for use with embeds in registrations
## Code After:
from django.conf.urls import url

from api.identifiers import views

urlpatterns = [
    url(r'^(?P<identifier_id>\w+)/$', views.IdentifierDetail.as_view(), name=views.IdentifierDetail.view_name),
    url(r'^(?P<node_id>\w+)/identifiers/$', views.IdentifierList.as_view(), name=views.IdentifierList.view_name),
]
