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": "9a7c1f39-7c7e-4bc5-80fd-705a3e937225",
    "Title": "sample string 2",
    "Description": "sample string 3",
    "ShortDescription": "sample string 4",
    "GPSCoordID": "ae09387c-a86e-4f56-9717-c12ca479e9e9",
    "OperatingTime": "sample string 5",
    "ContactNumber": "sample string 6",
    "Email": "sample string 7",
    "Address": "sample string 8",
    "CampusLifeServiceCategory": [
      {
        "ID": "7d75067e-1e8a-4e9f-ba8b-548b2dd6068a",
        "Title": "sample string 2",
        "Description": "sample string 3",
        "CampusLifeService": []
      },
      {
        "ID": "7d75067e-1e8a-4e9f-ba8b-548b2dd6068a",
        "Title": "sample string 2",
        "Description": "sample string 3",
        "CampusLifeService": []
      }
    ]
  },
  "ServiceGpsCoordinates": {
    "ID": "a6c4ca7b-8468-4356-b688-e09a928a43e5",
    "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.