2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00

Updated part API

This commit is contained in:
Oliver
2017-04-11 23:07:02 +10:00
parent 15582369d2
commit 3704ad34dc
3 changed files with 5 additions and 15 deletions

View File

@ -3,15 +3,15 @@ from django.conf.urls import url
from . import views
urlpatterns = [
# Display part detail
# Single part detail
url(r'^(?P<pk>[0-9]+)/$', views.PartDetail.as_view()),
# Display a single part category
# Part category detail
url(r'^category/(?P<pk>[0-9]+)/$', views.PartCategoryDetail.as_view()),
# Display a list of top-level categories
# List of top-level categories
url(r'^category/$', views.PartCategoryList.as_view()),
# Display list of all parts
# List of all parts
url(r'^$', views.PartList.as_view())
]