This commit is contained in:
2026-05-11 00:52:12 +03:30
parent 1740c20ddb
commit 17628f503f
5 changed files with 33 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

+33 -3
View File
@@ -477,9 +477,28 @@ class RemoteSensingAnalysisView(APIView):
summary="خواندن نتایج cache شده سنجش‌ازدور و subdivision", summary="خواندن نتایج cache شده سنجش‌ازدور و subdivision",
description="فقط نتایج ذخیره‌شده remote sensing و clustering را برمی‌گرداند و هیچ پردازش sync اجرا نمی‌کند.", description="فقط نتایج ذخیره‌شده remote sensing و clustering را برمی‌گرداند و هیچ پردازش sync اجرا نمی‌کند.",
parameters=[ parameters=[
{"name": "farm_uuid", "in": "query", "required": True, "schema": {"type": "string", "format": "uuid"}}, OpenApiParameter(
{"name": "page", "in": "query", "required": False, "schema": {"type": "integer", "default": 1}}, name="farm_uuid",
{"name": "page_size", "in": "query", "required": False, "schema": {"type": "integer", "default": 100}}, type=str,
location=OpenApiParameter.QUERY,
required=True,
description="شناسه یکتای مزرعه",
default="11111111-1111-1111-1111-111111111111",
),
OpenApiParameter(
name="page",
type=int,
location=OpenApiParameter.QUERY,
required=False,
default=1,
),
OpenApiParameter(
name="page_size",
type=int,
location=OpenApiParameter.QUERY,
required=False,
default=100,
),
], ],
responses={ responses={
200: build_response( 200: build_response(
@@ -495,6 +514,17 @@ class RemoteSensingAnalysisView(APIView):
"داده ورودی نامعتبر است.", "داده ورودی نامعتبر است.",
), ),
}, },
examples=[
OpenApiExample(
"نمونه درخواست GET remote sensing",
value={
"farm_uuid": "11111111-1111-1111-1111-111111111111",
"page": 1,
"page_size": 100,
},
parameter_only=("farm_uuid", "query"),
),
],
) )
def get(self, request): def get(self, request):
serializer = RemoteSensingFarmRequestSerializer(data=request.query_params) serializer = RemoteSensingFarmRequestSerializer(data=request.query_params)