POST api/employee/generateletterdecision
Request Information
URI Parameters
None.
Body Parameters
LetterInput| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Surname | string |
None. |
|
| string |
None. |
||
| EmployeeNumber | integer |
None. |
|
| BonusMonth | string |
None. |
|
| BonusChoice | string |
None. |
|
| DiffAmnt | decimal number |
None. |
|
| SendEmail | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Surname": "sample string 2",
"Email": "sample string 3",
"EmployeeNumber": 4,
"BonusMonth": "sample string 5",
"BonusChoice": "sample string 6",
"DiffAmnt": 1.0,
"SendEmail": true
}
application/xml, text/xml
Sample:
<LetterInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR_COS_Bonus.Dto.Letter"> <BonusChoice>sample string 6</BonusChoice> <BonusMonth>sample string 5</BonusMonth> <DiffAmnt>1</DiffAmnt> <Email>sample string 3</Email> <EmployeeNumber>4</EmployeeNumber> <Name>sample string 1</Name> <SendEmail>true</SendEmail> <Surname>sample string 2</Surname> </LetterInput>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DBResult| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| threwError | boolean |
None. |
|
| titleText | string |
None. |
|
| descripText | string |
None. |
|
| status | string |
None. |
|
| data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"threwError": true,
"titleText": "sample string 3",
"descripText": "sample string 4",
"status": "sample string 5",
"data": {}
}
application/xml, text/xml
Sample:
<DBResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR_COS_Bonus.Utils.Results"> <data /> <descripText>sample string 4</descripText> <status>sample string 5</status> <success>true</success> <threwError>true</threwError> <titleText>sample string 3</titleText> </DBResult>