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:
2025-12-20 23:18:20 +01:00
parent 713c94d7e9
commit 0346180d01
17 changed files with 314 additions and 286 deletions

View File

@@ -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. "