2016-08-09 09:27:37 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
#
|
|
|
|
|
2016-10-08 16:12:18 +00:00
|
|
|
|
|
|
|
from rest_framework import generics
|
|
|
|
|
|
|
|
import serializers
|
|
|
|
|
2016-10-09 16:39:24 +00:00
|
|
|
from .models import ProxyLog
|
2016-10-08 16:12:18 +00:00
|
|
|
|
2016-10-09 16:39:24 +00:00
|
|
|
|
|
|
|
class ProxyLogListCreateApi(generics.ListCreateAPIView):
|
|
|
|
queryset = ProxyLog.objects.all()
|
|
|
|
serializer_class = serializers.ProxyLogSerializer
|
|
|
|
|
|
|
|
|
|
|
|
class ProxyLogDetailApi(generics.RetrieveUpdateDestroyAPIView):
|
|
|
|
queryset = ProxyLog.objects.all()
|
2016-10-08 16:12:18 +00:00
|
|
|
serializer_class = serializers.ProxyLogSerializer
|
|
|
|
|
|
|
|
|
|
|
|
class CommandLogCreateApi(generics.CreateAPIView):
|
|
|
|
serializer_class = serializers.CommandLogSerializer
|