POST api/Holidays

Request Information

URI Parameters

None.

Body Parameters

HolidaysParam
NameDescriptionTypeAdditional information
language

string

None.

locNo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "language": "sample string 1",
  "locNo": 2
}

application/xml, text/xml

Sample:
<HolidaysController.HolidaysParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Controllers">
  <language>sample string 1</language>
  <locNo>2</locNo>
</HolidaysController.HolidaysParam>

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 'HolidaysParam'.

Response Information

Resource Description

ServiceResponse
NameDescriptionTypeAdditional information
StatusCode

integer

None.

StatusMessage

string

None.

ErrorType

string

None.

ObjectList

Object

None.

ObjectList2

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "StatusMessage": "sample string 2",
  "ErrorType": "sample string 3",
  "ObjectList": {},
  "ObjectList2": {}
}

application/xml, text/xml

Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Models">
  <ErrorType>sample string 3</ErrorType>
  <ObjectList />
  <ObjectList2 />
  <StatusCode>1</StatusCode>
  <StatusMessage>sample string 2</StatusMessage>
</ServiceResponse>