GET adventures/activities/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ActivityGET
NameDescriptionTypeAdditional information
ActivityType

ActivityTypeGET

None.

Contacts

Collection of ContactGET

None.

Coordinates

Coordinates

None.

Days

integer

None.

Description

string

None.

Difficulty

DifficultyGET

None.

Distance

decimal number

None.

Elevation

integer

None.

FeaturedImageId

integer

None.

Features

Collection of FeatureGET

None.

Id

integer

None.

Location

LocationBasicGET

None.

MapUrl

string

None.

Modified

date

None.

ModifiedBy

UserBasicGET

None.

Name

string

None.

Requirements

string

None.

SessionTypes

Collection of SessionTypeGET

None.

Site

SiteBasicGET

None.

Status

Status

None.

StartDate

date

None.

Response Formats

application/json, text/json

Sample:
{
  "activityType": {
    "description": "sample string 1",
    "iconUrl": "sample string 2",
    "id": 3,
    "name": "sample string 4",
    "selectedIconUrl": "sample string 5",
    "unselectedIconUrl": "sample string 6"
  },
  "contacts": [
    {
      "contactNo": "sample string 1",
      "email": "sample string 2",
      "id": 3,
      "name": "sample string 4"
    },
    {
      "contactNo": "sample string 1",
      "email": "sample string 2",
      "id": 3,
      "name": "sample string 4"
    }
  ],
  "coordinates": null,
  "days": 1,
  "description": "sample string 2",
  "difficulty": {
    "description": "sample string 1",
    "iconUrl": "sample string 2",
    "id": 3,
    "name": "sample string 4",
    "selectedIconUrl": "sample string 5",
    "unselectedIconUrl": "sample string 6"
  },
  "distance": 3.0,
  "elevation": 4,
  "featuredImageId": 5,
  "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"
    }
  ],
  "id": 6,
  "location": null,
  "mapUrl": "sample string 7",
  "modified": "2024-11-28T06:42:57.149016+00:00",
  "modifiedBy": null,
  "name": "sample string 9",
  "requirements": "sample string 10",
  "sessionTypes": [
    {
      "dayOfWeek": 1,
      "id": 2,
      "name": "sample string 3"
    },
    {
      "dayOfWeek": 1,
      "id": 2,
      "name": "sample string 3"
    }
  ],
  "site": null,
  "status": {
    "id": 1,
    "name": "sample string 2"
  },
  "startDate": "2024-11-28T06:42:57.149016+00:00"
}

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.