Skip to content

Commit

Permalink
feat: applications list view
Browse files Browse the repository at this point in the history
  • Loading branch information
Shavkatjon-O committed Sep 12, 2024
1 parent 778d644 commit cc15a5b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
Empty file.
11 changes: 11 additions & 0 deletions apps/applications/api/ApplicationsList/serializers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from rest_framework import serializers
from apps.applications.models import Application


class ApplicationsListSerializer(serializers.ModelSerializer):
class Meta:
model = Application
fields = "__all__"


__all__ = ("ApplicationsListSerializer",)
16 changes: 16 additions & 0 deletions apps/applications/api/ApplicationsList/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from rest_framework.generics import ListAPIView
from rest_framework.permissions import IsAuthenticated

from apps.applications.api.ApplicationsList.serializers import (
ApplicationsListSerializer,
)
from apps.applications.models import Application


class ApplicationsListAPIView(ListAPIView):
permission_classes = (IsAuthenticated,)
serializer_class = ApplicationsListSerializer
queryset = Application.objects.all()


__all__ = ("ApplicationsListAPIView",)
Empty file.
Empty file added apps/applications/urls.py
Empty file.

0 comments on commit cc15a5b

Please sign in to comment.