UPDATE
This commit is contained in:
BIN
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 160 KiB |
+33
-3
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user