resourceType
Description
Base class for a resource (such as a feature). Resources should use AllOf to incorporate this class.
Properties
Name | Description | Required | Type |
---|---|---|---|
Id | Unique identifier (UUID) used within the current server to identify the resource. | Yes | string |
Identifiers | Identifiers for the resource (see well-known/schemes... for example identity schemes). | No | Array of identifierType |
Links | Linked resources that are related to the current resource. | No | Array of relationType |
Meta | Meta-data for the resource. Mandatory if you wish to support synchronisation. | Yes | metaDataType |
Name | A user-readable name for the resource. | No | string |
Self | Uniform resource identifier (URI) of the resource (rel=self). | No | string |
Examples
Example 1
{
"id": "4f07320b-0b37-41b0-9803-6b1c1f2dece0",
"identifiers": [
{
"scheme": "agrinet.ie.paddock",
"id": "P1-14-2022-01-14"
}
],
"meta": {
"sourceId": {
"scheme": "agrinet.ie.paddockmeasurement",
"id": "123456-P1-14"
},
"modified": "2022-01-15T11:00:00Z",
"created": "2022-01-15T11:00:00Z",
"creator": "agrinet.ie",
"validFrom": "2022-01-15T11:00:00Z",
"validTo": "2023-04-15T11:00:00Z"
},
"name": "Pasture N. Donne: paddock 14, Jan 2022",
"resourceType": "pfPastureCoverEvent",
"@self": "https://api.purefarming.com/data/crops/pasture-cover/4f07320b-0b37-41b0-9803-6b1c1f2dece0"
}