APIs & services / commons-report-service

List farmers in a VO who are not in any SHG.

Endpointtoday's app
Call
GET /gateway/commons-report-service/api/v1/datasets/name/PlusOneWorkNodeFarmerHusbandFatherVOWiseNonSHG/execute
Service
commons-report-service
Features
Leased land
When
User filters farmers by VO
Auth
X-SESSIONID set by CoreAPI (dooNowOrThrow)
In the App Service

Use case

In the land-lease dialog, when the user picks the non-SHG option, this lists VO farmers who are not in any SHG (LandAssetViewModel.getFarmerNonSHG). The selected farmer's IEID feeds the owned-land lookup. Errors leave the dropdown empty.

Headers

HeaderValueNotes
X-SESSIONID<session token>Added by Bridge CoreAPI from the AccountManager session when the Operation is executed with dooNowOrThrow. The app code does not set it.

Parameters

ParamInRequiredExampleNotes
namequeryYesPlusOneWorkNodeFarmerHusbandFatherVOWiseNonSHGDataset name. The rtld executor (/rtld/api/dataset/v1/execute) picks the dataset by this query param.
versionqueryYes1Dataset version. Always 1.
formatqueryYesjsonResponse format. Always json, so the body is a JSON array of row objects.
paramsqueryYesVO_CODE=VO-ALIAS-001Dataset input parameters as KEY=value pairs joined with "--". VO_CODE = VOAlias of the selected VO. Note: the live code calls this on the rtld executor (GET /rtld/api/dataset/v1/execute?name=...), not the commons-report-service path in the key.

Request

No body. VO_CODE

Response

Example response body (synthetic data)
[
  {
    "IEID": "100001",
    "FarmerName": "Farmer A",
    "HusbandFatherName": "Relative A"
  }
]
FieldTypeRequiredNotes
IEIDstringDropdown value (DropDownBinder.code); the selected farmer becomes the lessor/lessee and their IEID is used for the owned-land lookup.
FarmerNamestringDropdown label.
HusbandFatherNamestringShown as the dropdown description to tell same-name farmers apart.

Errors

StatusWhenWhat the app does
non-2xxServer rejects the call or the dataset query fails (CoreAPI handles session refresh internally)Resource.error; empty farmer dropdown.
network errorNo connectivity or timeoutResource.error; empty farmer dropdown.

Source

  • app/src/main/java/org/platformcommons/urvi/datasource/repository/impl/VoFilterRepoImpl.kt
  • app/src/main/java/org/platformcommons/urvi/view/landasset/LandAssetViewModel.kt
  • app/src/main/java/org/platformcommons/urvi/view/landasset/AddUpdateAssetNewDialog.kt
  • data/src/main/java/org/mindtree/app/agricultor/data/entity/voFilters/FarmerDetails.kt