POST api/CampusLife/UpdateServiceInformation

Request Information

URI Parameters

None.

Body Parameters

CampusLifeServiceOutputViewModel
NameDescriptionTypeAdditional information
CampusService

CampusLifeService

None.

ServiceGpsCoordinates

GpsCoordinate

None.

Distance

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "CampusService": {
    "ID": "fbf9c3ad-2fcd-4a03-8223-108a7f749af2",
    "Title": "sample string 2",
    "Description": "sample string 3",
    "ShortDescription": "sample string 4",
    "GPSCoordID": "ea6959e4-9ff6-44c5-ad5a-1423a04e5d73",
    "OperatingTime": "sample string 5",
    "ContactNumber": "sample string 6",
    "Email": "sample string 7",
    "Address": "sample string 8",
    "CampusLifeServiceCategory": [
      {
        "ID": "12b7fdb4-e7c1-4f37-a658-6359a2c40711",
        "Title": "sample string 2",
        "Description": "sample string 3",
        "CampusLifeService": []
      },
      {
        "ID": "12b7fdb4-e7c1-4f37-a658-6359a2c40711",
        "Title": "sample string 2",
        "Description": "sample string 3",
        "CampusLifeService": []
      }
    ]
  },
  "ServiceGpsCoordinates": {
    "ID": "79c73361-3ad5-457a-aae1-6d6da82344ff",
    "Longitude": 2.0,
    "Latitude": 3.0
  },
  "Distance": 1.1
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'API.Models.CampusLifeServiceCategory' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'API.Models.CampusLifeServiceCategory' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CampusLifeServiceOutputViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.