GET ops/plantations
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of MTOPlantationName | Description | Type | Additional information |
---|---|---|---|
Compartments | Collection of MTOCompartment |
None. |
|
ID | integer |
None. |
|
LogSizes | Collection of LogSize |
None. |
|
MicroforestID | string |
None. |
|
Plantation | string |
None. |
|
Contractors | Collection of Contractor |
None. |
|
Supervisors | Collection of Supervisor |
None. |
Response Formats
application/json, text/json
Sample:
[ { "compartments": [ { "compartment": "sample string 1", "currentActivities": [ { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] }, { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] } ], "id": 2, "microforestID": 3 }, { "compartment": "sample string 1", "currentActivities": [ { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] }, { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] } ], "id": 2, "microforestID": 3 } ], "id": 1, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ], "microforestID": "sample string 2", "plantation": "sample string 3", "contractors": [ { "id": 1, "name": "sample string 2" }, { "id": 1, "name": "sample string 2" } ], "supervisors": [ { "id": 1, "name": "sample string 2" }, { "id": 1, "name": "sample string 2" } ] }, { "compartments": [ { "compartment": "sample string 1", "currentActivities": [ { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] }, { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] } ], "id": 2, "microforestID": 3 }, { "compartment": "sample string 1", "currentActivities": [ { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] }, { "activity": "sample string 1", "id": 2, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ] } ], "id": 2, "microforestID": 3 } ], "id": 1, "logSizes": [ { "id": 1, "length": 2.0, "diameters": null }, { "id": 1, "length": 2.0, "diameters": null } ], "microforestID": "sample string 2", "plantation": "sample string 3", "contractors": [ { "id": 1, "name": "sample string 2" }, { "id": 1, "name": "sample string 2" } ], "supervisors": [ { "id": 1, "name": "sample string 2" }, { "id": 1, "name": "sample string 2" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfMTOPlantation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations"> <MTOPlantation> <Compartments> <MTOCompartment> <Compartment>sample string 1</Compartment> <CurrentActivities> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> </CurrentActivities> <ID>2</ID> <MicroforestID>3</MicroforestID> </MTOCompartment> <MTOCompartment> <Compartment>sample string 1</Compartment> <CurrentActivities> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> </CurrentActivities> <ID>2</ID> <MicroforestID>3</MicroforestID> </MTOCompartment> </Compartments> <Contractors> <Contractor> <Id>1</Id> <Name>sample string 2</Name> </Contractor> <Contractor> <Id>1</Id> <Name>sample string 2</Name> </Contractor> </Contractors> <ID>1</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> <MicroforestID>sample string 2</MicroforestID> <Plantation>sample string 3</Plantation> <Supervisors> <Supervisor> <Id>1</Id> <Name>sample string 2</Name> </Supervisor> <Supervisor> <Id>1</Id> <Name>sample string 2</Name> </Supervisor> </Supervisors> </MTOPlantation> <MTOPlantation> <Compartments> <MTOCompartment> <Compartment>sample string 1</Compartment> <CurrentActivities> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> </CurrentActivities> <ID>2</ID> <MicroforestID>3</MicroforestID> </MTOCompartment> <MTOCompartment> <Compartment>sample string 1</Compartment> <CurrentActivities> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> <MTOActivity> <Activity>sample string 1</Activity> <ID>2</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> </MTOActivity> </CurrentActivities> <ID>2</ID> <MicroforestID>3</MicroforestID> </MTOCompartment> </Compartments> <Contractors> <Contractor> <Id>1</Id> <Name>sample string 2</Name> </Contractor> <Contractor> <Id>1</Id> <Name>sample string 2</Name> </Contractor> </Contractors> <ID>1</ID> <LogSizes> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> <LogSize> <Diameters i:nil="true" /> <Id>1</Id> <Length>2</Length> </LogSize> </LogSizes> <MicroforestID>sample string 2</MicroforestID> <Plantation>sample string 3</Plantation> <Supervisors> <Supervisor> <Id>1</Id> <Name>sample string 2</Name> </Supervisor> <Supervisor> <Id>1</Id> <Name>sample string 2</Name> </Supervisor> </Supervisors> </MTOPlantation> </ArrayOfMTOPlantation>