2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-23 11:55:54 +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

@@ -1,4 +1,3 @@
from django.http import HttpResponse
from rest_framework import generics
from .models import PartCategory, Part
@@ -6,14 +5,6 @@ from .serializers import PartBriefSerializer, PartDetailSerializer
from .serializers import PartCategoryBriefSerializer, PartCategoryDetailSerializer
def part_index(request):
return HttpResponse("Hello world. This is the parts page")
def category_index(request):
return HttpResponse("This is the category page")
class PartDetail(generics.RetrieveAPIView):
queryset = Part.objects.all()