diff --git a/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__cluster-map.png b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__cluster-map.png new file mode 100644 index 0000000..c2e315a Binary files /dev/null and b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__cluster-map.png differ diff --git a/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__cluster-sizes.png b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__cluster-sizes.png new file mode 100644 index 0000000..2089897 Binary files /dev/null and b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__cluster-sizes.png differ diff --git a/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__elbow.png b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__elbow.png new file mode 100644 index 0000000..a51a107 Binary files /dev/null and b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__elbow.png differ diff --git a/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__feature-pairs.png b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__feature-pairs.png new file mode 100644 index 0000000..3dacfd6 Binary files /dev/null and b/artifacts/remote_sensing_charts/location-1/run-2-farm/location-1__run-2__farm__feature-pairs.png differ diff --git a/location_data/views.py b/location_data/views.py index 46d4fe6..d9d3bb8 100644 --- a/location_data/views.py +++ b/location_data/views.py @@ -477,9 +477,28 @@ class RemoteSensingAnalysisView(APIView): summary="خواندن نتایج cache شده سنجش‌ازدور و subdivision", description="فقط نتایج ذخیره‌شده remote sensing و clustering را برمی‌گرداند و هیچ پردازش sync اجرا نمی‌کند.", parameters=[ - {"name": "farm_uuid", "in": "query", "required": True, "schema": {"type": "string", "format": "uuid"}}, - {"name": "page", "in": "query", "required": False, "schema": {"type": "integer", "default": 1}}, - {"name": "page_size", "in": "query", "required": False, "schema": {"type": "integer", "default": 100}}, + OpenApiParameter( + name="farm_uuid", + 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={ 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): serializer = RemoteSensingFarmRequestSerializer(data=request.query_params)