mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-26 02:54:20 +00:00
Fixed comment
This commit is contained in:
parent
c2ccf63021
commit
b9ea687df1
@ -30,13 +30,13 @@ class CounterViewSet(viewsets.ModelViewSet):
|
|||||||
@list_route()
|
@list_route()
|
||||||
def bar(self, request):
|
def bar(self, request):
|
||||||
"""
|
"""
|
||||||
Return all counters (api/v1/counter/all)
|
Return all counters (api/v1/counter/bar)
|
||||||
"""
|
"""
|
||||||
self.queryset = Counter.objects.filter(type="BAR")
|
self.queryset = Counter.objects.filter(type="BAR")
|
||||||
serializer = self.get_serializer(self.queryset, many=True)
|
serializer = self.get_serializer(self.queryset, many=True)
|
||||||
return Response(serializer.data)
|
return Response(serializer.data)
|
||||||
|
|
||||||
@detail_route(methods=['GET'])
|
@detail_route()
|
||||||
def id(self, request, pk=None):
|
def id(self, request, pk=None):
|
||||||
"""
|
"""
|
||||||
Get by id (api/v1/{nk}/id)
|
Get by id (api/v1/{nk}/id)
|
||||||
|
Loading…
Reference in New Issue
Block a user