GET ops/headcounts

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of HeadCount
NameDescriptionTypeAdditional information
Activity

ActivityBasicGET

None.

Compartment

CompartmentBasicGET

None.

Coordinates

Coordinates

None.

Count

integer

None.

Id

integer

None.

Submitted

date

None.

SubmittedBy

UserBasicGET

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "activity": {
      "id": 1,
      "name": "sample string 2"
    },
    "compartment": {
      "id": 1,
      "name": "sample string 2",
      "plantation": {
        "id": 1,
        "name": "sample string 2"
      }
    },
    "coordinates": null,
    "count": 1,
    "id": 2,
    "submitted": "2024-11-28T06:50:57.7694892+00:00",
    "submittedBy": null
  },
  {
    "activity": {
      "id": 1,
      "name": "sample string 2"
    },
    "compartment": {
      "id": 1,
      "name": "sample string 2",
      "plantation": {
        "id": 1,
        "name": "sample string 2"
      }
    },
    "coordinates": null,
    "count": 1,
    "id": 2,
    "submitted": "2024-11-28T06:50:57.7694892+00:00",
    "submittedBy": null
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'myPortalApi.Models.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'myPortalApi.Models.Coordinates' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.