POST api/HGFillin/Post

It is used to add multiple fillins added by a employee

Request Information

URI Parameters

None.

Body Parameters

Collection of UserDefinedFillin
NameDescriptionTypeAdditional information
EmpID

It represents the employee id who added the fillin

integer

None.

DeptID

It represents the DeptID that employee belongs to. ex. P means Property, R means Roof, T means Termite

string

None.

Word

It represents the word which actual fillin name

string

None.

Request Formats

application/json

Sample:
[
  {
    "EmpID": 1,
    "Word": "sample string 3",
    "DeptID": "sample string 2"
  },
  {
    "EmpID": 1,
    "Word": "sample string 3",
    "DeptID": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserDefinedFillin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HomeguardApp.BusinessObjects.Shared">
  <UserDefinedFillin>
    <DeptID>sample string 2</DeptID>
    <EmpID>1</EmpID>
    <Word>sample string 3</Word>
  </UserDefinedFillin>
  <UserDefinedFillin>
    <DeptID>sample string 2</DeptID>
    <EmpID>1</EmpID>
    <Word>sample string 3</Word>
  </UserDefinedFillin>
</ArrayOfUserDefinedFillin>

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 'IEnumerable`1'.

Response Information

Resource Description

It is used to add multiple fillins added by a employee

ResponseStatusModel
NameDescriptionTypeAdditional information
Status

It represents the status of current API call. status can be either "success" or "failed"

string

None.

Message

It represents the some description about the API response.

string

None.

Response Formats

application/json

Sample:
{
  "Message": "sample string 2",
  "Status": "sample string 1"
}

application/xml, text/xml

Sample:
<ResponseStatusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HomeguardApp.Models">
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</ResponseStatusModel>