GET ops/compartments

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of MTOCompartment
NameDescriptionTypeAdditional information
Compartment

string

None.

CurrentActivities

Collection of MTOActivity

None.

ID

integer

None.

MicroforestID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "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
  }
]

application/xml, text/xml

Sample:
<ArrayOfMTOCompartment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Operations">
  <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>
</ArrayOfMTOCompartment>