#
# ----------------------------------------------------------------------------------------------------
# DESCRIPTION
# ----------------------------------------------------------------------------------------------------


#
# ----------------------------------------------------------------------------------------------------
# IMPORTS
# ----------------------------------------------------------------------------------------------------
from restAPICore.views                      import SimpleCollectionAPIView, SimpleDetailAPIView

from content.models                         import Content, ContentType, Item
from content.serializers                    import ContentSerializer, ContentTypeSerializer, ItemSerializer


#
# ----------------------------------------------------------------------------------------------------
# API VIEWS
# ----------------------------------------------------------------------------------------------------
#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentTypeCollectionView(SimpleCollectionAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = ContentType

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentTypeSerializer

#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentTypeDetailView(SimpleDetailAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = (UserAccountSuperUserPermission,)

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = ContentType

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentTypeSerializer

#
#
#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentCollectionView(SimpleCollectionAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Content

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentSerializer

#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentDetailView(SimpleDetailAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Content

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentSerializer

#
#
#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ItemCollectionView(SimpleCollectionAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Item

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ItemSerializer

#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ItemDetailView(SimpleDetailAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Item

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ItemSerializer

#
# ----------------------------------------------------------------------------------------------------
# DESCRIPTION
# ----------------------------------------------------------------------------------------------------


#
# ----------------------------------------------------------------------------------------------------
# IMPORTS
# ----------------------------------------------------------------------------------------------------
from restAPICore.views                      import SimpleCollectionAPIView, SimpleDetailAPIView

from content.models                         import Content, ContentType, Item
from content.serializers                    import ContentSerializer, ContentTypeSerializer, ItemSerializer


#
# ----------------------------------------------------------------------------------------------------
# API VIEWS
# ----------------------------------------------------------------------------------------------------
#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentTypeCollectionView(SimpleCollectionAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = ContentType

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentTypeSerializer

#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentTypeDetailView(SimpleDetailAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = (UserAccountSuperUserPermission,)

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = ContentType

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentTypeSerializer

#
#
#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentCollectionView(SimpleCollectionAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Content

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentSerializer

#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ContentDetailView(SimpleDetailAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Content

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ContentSerializer

#
#
#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ItemCollectionView(SimpleCollectionAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Item

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ItemSerializer

#
## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class.
class ItemDetailView(SimpleDetailAPIView):

    ## [ tuple ] - Authentication classes.
    # authentication_classes  = ()

    ## [ tuple ] - Permission classes.
    # permission_classes      = ()

    ## [ django.db.models.Model ] - Model class object.
    MODEL_CLASS             = Item

    ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.
    MODEL_CLASS_SERIALIZER  = ItemSerializer

# # ---------------------------------------------------------------------------------------------------- # DESCRIPTION # ---------------------------------------------------------------------------------------------------- # # ---------------------------------------------------------------------------------------------------- # IMPORTS # ---------------------------------------------------------------------------------------------------- # # ---------------------------------------------------------------------------------------------------- # API VIEWS # ---------------------------------------------------------------------------------------------------- # ## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class. ## [ tuple ] - Authentication classes. # authentication_classes  = () ## [ tuple ] - Permission classes. # permission_classes      = () ## [ django.db.models.Model ] - Model class object. ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object. # ## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class. ## [ tuple ] - Authentication classes. # authentication_classes  = () ## [ tuple ] - Permission classes. # permission_classes      = (UserAccountSuperUserPermission,) ## [ django.db.models.Model ] - Model class object. ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object. # # # ## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class. ## [ tuple ] - Authentication classes. # authentication_classes  = () ## [ tuple ] - Permission classes. # permission_classes      = () ## [ django.db.models.Model ] - Model class object. ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object. # ## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class. ## [ tuple ] - Authentication classes. # authentication_classes  = () ## [ tuple ] - Permission classes. # permission_classes      = () ## [ django.db.models.Model ] - Model class object. ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object. # # # ## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class. ## [ tuple ] - Authentication classes. # authentication_classes  = () ## [ tuple ] - Permission classes. # permission_classes      = () ## [ django.db.models.Model ] - Model class object. ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object. # ## @brief [ REST FRAMEWORK API VIEW CLASS ] - REST framework API view class. ## [ tuple ] - Authentication classes. # authentication_classes  = () ## [ tuple ] - Permission classes. # permission_classes      = () ## [ django.db.models.Model ] - Model class object. ## [ rest_framework.serializers.ModelSerializer ] - REST framework model serializer class object.