from core.models import PlatformType

from api.v2.serializers.details import PlatformTypeSerializer
from api.v2.views.base import AuthModelViewSet


class PlatformTypeViewSet(AuthModelViewSet):

    """
    API endpoint that allows instance actions to be viewed or edited.
    """

    queryset = PlatformType.objects.all()
    serializer_class = PlatformTypeSerializer
    http_method_names = ['get', 'head', 'options', 'trace']

from core.models import PlatformType

from api.v2.serializers.details import PlatformTypeSerializer
from api.v2.views.base import AuthModelViewSet


class PlatformTypeViewSet(AuthModelViewSet):

    """
    API endpoint that allows instance actions to be viewed or edited.
    """

    queryset = PlatformType.objects.all()
    serializer_class = PlatformTypeSerializer
    http_method_names = ['get', 'head', 'options', 'trace']

API endpoint that allows instance actions to be viewed or edited.