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": "6dbb43f3-8965-4604-9684-b2670163332f",
    "Title": "sample string 2",
    "Description": "sample string 3",
    "ShortDescription": "sample string 4",
    "GPSCoordID": "31a94b9a-fe15-4c15-8ec6-6d7454c26916",
    "OperatingTime": "sample string 5",
    "ContactNumber": "sample string 6",
    "Email": "sample string 7",
    "Address": "sample string 8",
    "CampusLifeServiceCategory": [
      {
        "ID": "b2c54b0a-10e6-448b-b2cf-fd6f47cda09e",
        "Title": "sample string 2",
        "Description": "sample string 3",
        "CampusLifeService": []
      },
      {
        "ID": "b2c54b0a-10e6-448b-b2cf-fd6f47cda09e",
        "Title": "sample string 2",
        "Description": "sample string 3",
        "CampusLifeService": []
      }
    ]
  },
  "ServiceGpsCoordinates": {
    "ID": "e6e4240e-e166-4f01-a12c-628079121f77",
    "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.