GET eco/activities/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ActivityDetails
NameDescriptionTypeAdditional information
Contacts

Collection of Contact

None.

Distance

decimal number

None.

Elevation

integer

None.

Features

Collection of Feature

None.

Kml

string

None.

MapUrl

string

None.

Media

Collection of MediaItem

None.

OpeningTimes

OpeningTimes

None.

Requirements

string

None.

PackageTypes

Collection of PackageType

None.

PermitTypes

Collection of PermitType

None.

RelatedActivities

Collection of ActivitySummary

None.

ActivityType

ActivityType

None.

Days

integer

None.

Description

string

None.

FeaturedImageUrl

string

None.

ID

integer

None.

Location

Location

None.

Difficulty

ActivityDifficulty

None.

Site

ActivitySite

None.

StartPoint

Coordinates

None.

Name

string

None.

Tags

string

None.

StartDate

date

None.

AvailableSpaces

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "contacts": [
    {
      "contactNo": "sample string 1",
      "emailAddress": "sample string 2",
      "id": 3,
      "name": "sample string 4"
    },
    {
      "contactNo": "sample string 1",
      "emailAddress": "sample string 2",
      "id": 3,
      "name": "sample string 4"
    }
  ],
  "distance": 1.0,
  "elevation": 2,
  "features": [
    {
      "description": "sample string 1",
      "iconUrl": "sample string 2",
      "id": 3,
      "name": "sample string 4"
    },
    {
      "description": "sample string 1",
      "iconUrl": "sample string 2",
      "id": 3,
      "name": "sample string 4"
    }
  ],
  "kml": "sample string 3",
  "mapUrl": "sample string 4",
  "media": [
    {
      "id": 1,
      "mediaType": "sample string 2",
      "name": "sample string 3",
      "url": "sample string 4"
    },
    {
      "id": 1,
      "mediaType": "sample string 2",
      "name": "sample string 3",
      "url": "sample string 4"
    }
  ],
  "openingTimes": {
    "open": "00:00:00.1234567",
    "close": "00:00:00.1234567"
  },
  "requirements": "sample string 5",
  "packageTypes": [
    {
      "baseCost": 1.0,
      "baseUsers": 2,
      "core": true,
      "description": "sample string 4",
      "extraCost": 5.0,
      "id": 6,
      "modified": "2024-02-21T06:31:15.5014256+02:00",
      "modifiedBy": {
        "firstName": "sample string 1",
        "id": 2,
        "lastName": "sample string 3",
        "uid": "sample string 4",
        "username": "sample string 5"
      },
      "name": "sample string 8",
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "resourceGroups": [
        {
          "day": 1,
          "resourceGroupId": 2,
          "description": "sample string 3",
          "id": 4,
          "modified": "2024-02-21T06:31:15.5014256+02:00",
          "modifiedBy": {
            "firstName": "sample string 1",
            "id": 2,
            "lastName": "sample string 3",
            "uid": "sample string 4",
            "username": "sample string 5"
          },
          "name": "sample string 6",
          "status": {
            "id": 1,
            "name": "sample string 2"
          }
        },
        {
          "day": 1,
          "resourceGroupId": 2,
          "description": "sample string 3",
          "id": 4,
          "modified": "2024-02-21T06:31:15.5014256+02:00",
          "modifiedBy": {
            "firstName": "sample string 1",
            "id": 2,
            "lastName": "sample string 3",
            "uid": "sample string 4",
            "username": "sample string 5"
          },
          "name": "sample string 6",
          "status": {
            "id": 1,
            "name": "sample string 2"
          }
        }
      ]
    },
    {
      "baseCost": 1.0,
      "baseUsers": 2,
      "core": true,
      "description": "sample string 4",
      "extraCost": 5.0,
      "id": 6,
      "modified": "2024-02-21T06:31:15.5014256+02:00",
      "modifiedBy": {
        "firstName": "sample string 1",
        "id": 2,
        "lastName": "sample string 3",
        "uid": "sample string 4",
        "username": "sample string 5"
      },
      "name": "sample string 8",
      "status": {
        "id": 1,
        "name": "sample string 2"
      },
      "resourceGroups": [
        {
          "day": 1,
          "resourceGroupId": 2,
          "description": "sample string 3",
          "id": 4,
          "modified": "2024-02-21T06:31:15.5014256+02:00",
          "modifiedBy": {
            "firstName": "sample string 1",
            "id": 2,
            "lastName": "sample string 3",
            "uid": "sample string 4",
            "username": "sample string 5"
          },
          "name": "sample string 6",
          "status": {
            "id": 1,
            "name": "sample string 2"
          }
        },
        {
          "day": 1,
          "resourceGroupId": 2,
          "description": "sample string 3",
          "id": 4,
          "modified": "2024-02-21T06:31:15.5014256+02:00",
          "modifiedBy": {
            "firstName": "sample string 1",
            "id": 2,
            "lastName": "sample string 3",
            "uid": "sample string 4",
            "username": "sample string 5"
          },
          "name": "sample string 6",
          "status": {
            "id": 1,
            "name": "sample string 2"
          }
        }
      ]
    }
  ],
  "permitTypes": [
    {
      "baseCost": 1.0,
      "baseUsers": 2,
      "daysValid": 3,
      "description": "sample string 4",
      "extraCost": 5.0,
      "id": 6,
      "modified": "2024-02-21T06:31:15.5014256+02:00",
      "modifiedBy": 8,
      "name": "sample string 9",
      "organisationId": 10,
      "statusId": 11
    },
    {
      "baseCost": 1.0,
      "baseUsers": 2,
      "daysValid": 3,
      "description": "sample string 4",
      "extraCost": 5.0,
      "id": 6,
      "modified": "2024-02-21T06:31:15.5014256+02:00",
      "modifiedBy": 8,
      "name": "sample string 9",
      "organisationId": 10,
      "statusId": 11
    }
  ],
  "relatedActivities": [
    {
      "activityType": {
        "description": "sample string 1",
        "iconUrl": "sample string 2",
        "id": 3,
        "selectedIconUrl": "sample string 4",
        "name": "sample string 5",
        "unselectedIconUrl": "sample string 6"
      },
      "days": 1,
      "description": "sample string 2",
      "featuredImageUrl": "sample string 3",
      "id": 4,
      "location": {
        "coordinates": null,
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "parentID": 4
      },
      "difficulty": {
        "description": "sample string 1",
        "iconUrl": "sample string 2",
        "id": 3,
        "name": "sample string 4",
        "selectedIconUrl": "sample string 5",
        "unselectedIconUrl": "sample string 6"
      },
      "site": {
        "coordinates": null,
        "description": "sample string 1",
        "mapUrl": "sample string 2",
        "id": 3,
        "name": "sample string 4"
      },
      "startPoint": null,
      "name": "sample string 5",
      "tags": "sample string 6",
      "startDate": "2024-02-21T06:31:15.5014256+02:00",
      "availableSpaces": 7
    },
    {
      "activityType": {
        "description": "sample string 1",
        "iconUrl": "sample string 2",
        "id": 3,
        "selectedIconUrl": "sample string 4",
        "name": "sample string 5",
        "unselectedIconUrl": "sample string 6"
      },
      "days": 1,
      "description": "sample string 2",
      "featuredImageUrl": "sample string 3",
      "id": 4,
      "location": {
        "coordinates": null,
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "parentID": 4
      },
      "difficulty": {
        "description": "sample string 1",
        "iconUrl": "sample string 2",
        "id": 3,
        "name": "sample string 4",
        "selectedIconUrl": "sample string 5",
        "unselectedIconUrl": "sample string 6"
      },
      "site": {
        "coordinates": null,
        "description": "sample string 1",
        "mapUrl": "sample string 2",
        "id": 3,
        "name": "sample string 4"
      },
      "startPoint": null,
      "name": "sample string 5",
      "tags": "sample string 6",
      "startDate": "2024-02-21T06:31:15.5014256+02:00",
      "availableSpaces": 7
    }
  ],
  "activityType": {
    "description": "sample string 1",
    "iconUrl": "sample string 2",
    "id": 3,
    "selectedIconUrl": "sample string 4",
    "name": "sample string 5",
    "unselectedIconUrl": "sample string 6"
  },
  "days": 6,
  "description": "sample string 7",
  "featuredImageUrl": "sample string 8",
  "id": 9,
  "location": {
    "coordinates": null,
    "id": 1,
    "name": "sample string 2",
    "description": "sample string 3",
    "parentID": 4
  },
  "difficulty": {
    "description": "sample string 1",
    "iconUrl": "sample string 2",
    "id": 3,
    "name": "sample string 4",
    "selectedIconUrl": "sample string 5",
    "unselectedIconUrl": "sample string 6"
  },
  "site": {
    "coordinates": null,
    "description": "sample string 1",
    "mapUrl": "sample string 2",
    "id": 3,
    "name": "sample string 4"
  },
  "startPoint": null,
  "name": "sample string 10",
  "tags": "sample string 11",
  "startDate": "2024-02-21T06:31:15.5170435+02:00",
  "availableSpaces": 12
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'MTO.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 'MTO.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.