GET eco/sites/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

SiteGET
NameDescriptionTypeAdditional information
City

CityGET

None.

Contacts

Collection of ContactGET

None.

Coordinates

Coordinates

None.

Description

string

None.

FeaturedImage

string

None.

Id

integer

None.

Media

Collection of MediaGET

None.

Name

string

None.

OpeningTimes

OpeningTimes

None.

Org

Organisation

None.

PaymentTypes

Collection of PaymentTypeGET

None.

Pricing

string

None.

Response Formats

application/json, text/json

Sample:
{
  "city": {
    "id": 1,
    "name": "sample string 2",
    "description": "sample string 3",
    "latitude": 4.1,
    "longitude": 5.1,
    "status": {
      "id": 1,
      "name": "sample string 2"
    },
    "modified": "2024-02-21T06:24:18.5711616+02:00",
    "modifiedBy": {
      "id": 1,
      "username": "sample string 2"
    }
  },
  "contacts": [
    {
      "contactNo": "sample string 1",
      "id": 2,
      "email": "sample string 3",
      "name": "sample string 4"
    },
    {
      "contactNo": "sample string 1",
      "id": 2,
      "email": "sample string 3",
      "name": "sample string 4"
    }
  ],
  "coordinates": null,
  "description": "sample string 1",
  "featuredImage": "sample string 2",
  "id": 3,
  "media": null,
  "name": "sample string 4",
  "openingTimes": {
    "open": "00:00:00.1234567",
    "close": "00:00:00.1234567"
  },
  "org": {
    "id": 1,
    "name": "sample string 2",
    "logo": "sample string 3"
  },
  "paymentTypes": [
    {
      "id": 1,
      "name": "sample string 2",
      "url": "sample string 3"
    },
    {
      "id": 1,
      "name": "sample string 2",
      "url": "sample string 3"
    }
  ],
  "pricing": "sample string 5"
}

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.