feat: add prettier for code formatting
refactor: update route for downloader to apps/downloader chore: remove unused filler model files refactor: delete Default layout component and its imports
This commit is contained in:
6
backend/thirdparty/gopay/views.py
vendored
6
backend/thirdparty/gopay/views.py
vendored
@@ -65,7 +65,7 @@ class CreatePaymentView(APIView):
|
||||
permission_classes = [permissions.IsAuthenticated]
|
||||
|
||||
@extend_schema(
|
||||
tags=["GoPay"],
|
||||
tags=["gopay"],
|
||||
operation_id="gopay_create_payment",
|
||||
summary="Vytvořit platbu (minimální vstup)",
|
||||
description=(
|
||||
@@ -146,7 +146,7 @@ class PaymentStatusView(APIView):
|
||||
permission_classes = [permissions.IsAuthenticated]
|
||||
|
||||
@extend_schema(
|
||||
tags=["GoPay"],
|
||||
tags=["gopay"],
|
||||
operation_id="gopay_get_status",
|
||||
summary="Získat stav platby",
|
||||
parameters=[
|
||||
@@ -202,7 +202,7 @@ class RefundPaymentView(APIView):
|
||||
permission_classes = [permissions.IsAuthenticated]
|
||||
|
||||
@extend_schema(
|
||||
tags=["GoPay"],
|
||||
tags=["gopay"],
|
||||
operation_id="gopay_refund_payment",
|
||||
summary="Refundovat platbu",
|
||||
parameters=[
|
||||
|
||||
14
backend/thirdparty/zasilkovna/views.py
vendored
14
backend/thirdparty/zasilkovna/views.py
vendored
@@ -18,13 +18,13 @@ from .serializers import (
|
||||
|
||||
@extend_schema_view(
|
||||
list=extend_schema(
|
||||
tags=["Packeta-Shipment"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Hromadný shipment",
|
||||
description="Returns a paginated list of Packeta (Zásilkovna) shipments.",
|
||||
responses=ZasilkovnaShipmentSerializer,
|
||||
),
|
||||
retrieve=extend_schema(
|
||||
tags=["Packeta-Shipment"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Detail hromadné zásilky",
|
||||
description="Returns detail for a single shipment.",
|
||||
responses=ZasilkovnaShipmentSerializer,
|
||||
@@ -42,7 +42,7 @@ class ZasilkovnaShipmentViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin
|
||||
|
||||
@extend_schema_view(
|
||||
retrieve=extend_schema(
|
||||
tags=["Packet"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Packet",
|
||||
description="#TODO: Popis endpointu",
|
||||
responses={200: ZasilkovnaPacketSerializer},
|
||||
@@ -53,7 +53,7 @@ class ZasilkovnaPacketViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet
|
||||
serializer_class = ZasilkovnaPacketSerializer
|
||||
|
||||
@extend_schema(
|
||||
tags=["Packet"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Get public tracking URL",
|
||||
description="Returns the public Zásilkovna tracking URL derived from the packet's barcode.",
|
||||
responses=OpenApiResponse(response=TrackingURLSerializer),
|
||||
@@ -74,7 +74,7 @@ class ZasilkovnaPacketViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet
|
||||
|
||||
#HOTOVO
|
||||
@extend_schema(
|
||||
tags=["Packet"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Order shipping",
|
||||
description=(
|
||||
"Objedná přepravu přes API Packety,"
|
||||
@@ -96,7 +96,7 @@ class ZasilkovnaPacketViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet
|
||||
|
||||
#HOTOVO
|
||||
@extend_schema(
|
||||
tags=["Packet"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Cancel packet",
|
||||
description=(
|
||||
"Cancels the packet through the Packeta API and updates its state to CANCELED. "
|
||||
@@ -118,7 +118,7 @@ class ZasilkovnaPacketViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet
|
||||
|
||||
#TODO: dodělat/domluvit se
|
||||
@extend_schema(
|
||||
tags=["Packet"],
|
||||
tags=["zasilkovna"],
|
||||
summary="Get widget for user, to select pickup point.",
|
||||
description=(
|
||||
"Returns HTML widget for user to select pickup point. "
|
||||
|
||||
Reference in New Issue
Block a user