fix: Swagger schema fix, comments add
This commit is contained in:
@@ -1,28 +1,25 @@
|
||||
from django.db import transaction
|
||||
|
||||
from drf_spectacular.utils import extend_schema
|
||||
|
||||
from rest_framework.generics import GenericAPIView # type: ignore
|
||||
from rest_framework.decorators import action # type: ignore
|
||||
from rest_framework import status # type: ignore
|
||||
from rest_framework.request import HttpRequest # type: ignore
|
||||
from rest_framework.response import Response # type: ignore
|
||||
from rest_framework.permissions import ( # type: ignore
|
||||
IsAuthenticated
|
||||
)
|
||||
from rest_framework.permissions import IsAuthenticated # type: ignore
|
||||
|
||||
from core.utils.views import BaseApiViewMixin
|
||||
from core.apps.companies.serializers import (
|
||||
RetrieveCompanySerializer,
|
||||
CreateCompanySerializer,
|
||||
)
|
||||
from core.apps.companies.models import (
|
||||
CompanyModel,
|
||||
CompanyAccountModel
|
||||
)
|
||||
|
||||
from django.db import transaction
|
||||
from core.apps.companies.models import CompanyModel, CompanyAccountModel
|
||||
|
||||
|
||||
######################################################################
|
||||
# @api-view | POST, GET - me/companies
|
||||
######################################################################
|
||||
@extend_schema(tags=["Me"])
|
||||
class MeCompanyApiView(BaseApiViewMixin, GenericAPIView): # type: ignore
|
||||
permission_classes = [IsAuthenticated]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user