POST api/Holiday

Request Information

URI Parameters

None.

Body Parameters

t_HolidayListDTO
NameDescriptionTypeAdditional information
HId

integer

Required

HolidayName

string

Required

HolidayDetails

string

Required

HolidayFromDate

date

Required

HolidayToDate

date

Required

CreatedBy

integer

Required

year

integer

Required

State

integer

Required

Domain

string

Required

Request Formats

application/json, text/json

Sample:
{
  "HId": 1,
  "HolidayName": "sample string 2",
  "HolidayDetails": "sample string 3",
  "HolidayFromDate": "2021-12-09T04:27:03.9349031+05:30",
  "HolidayToDate": "2021-12-09T04:27:03.9349031+05:30",
  "CreatedBy": 4,
  "year": 5,
  "State": 6,
  "Domain": "sample string 7"
}

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

Response Information

Resource Description

Message
NameDescriptionTypeAdditional information
ResponseFlag

integer

None.

ResponseMessage

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseFlag": 1,
  "ResponseMessage": "sample string 2",
  "Data": {}
}