POST api/application/employments
Request Information
URI Parameters
None.
Body Parameters
Collection of EmploymentsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| EmploymentId | integer |
Required |
|
| Employer | string |
Required |
|
| FromYear | integer |
Required |
|
| ToYear | integer |
Required |
|
| FromMonth | Months |
Required |
|
| ToMonth | Months |
Required |
|
| Position | string |
Required |
Request Formats
application/json, text/json
Sample:
[
{
"employmentId": 1,
"employer": "sample string 1",
"fromYear": 2,
"toYear": 3,
"fromMonth": 0,
"toMonth": 0,
"position": "sample string 4"
},
{
"employmentId": 1,
"employer": "sample string 1",
"fromYear": 2,
"toYear": 3,
"fromMonth": 0,
"toMonth": 0,
"position": "sample string 4"
}
]
text/html
Sample:
[{"employmentId":1,"employer":"sample string 1","fromYear":2,"toYear":3,"fromMonth":0,"toMonth":0,"position":"sample string 4"},{"employmentId":1,"employer":"sample string 1","fromYear":2,"toYear":3,"fromMonth":0,"toMonth":0,"position":"sample string 4"}]
text/xml
Sample:
<ArrayOfEmploymentsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models.DTOs.Application">
<EmploymentsRequest>
<Employer>sample string 1</Employer>
<EmploymentId>1</EmploymentId>
<FromMonth>NotSet</FromMonth>
<FromYear>2</FromYear>
<Position>sample string 4</Position>
<ToMonth>NotSet</ToMonth>
<ToYear>3</ToYear>
</EmploymentsRequest>
<EmploymentsRequest>
<Employer>sample string 1</Employer>
<EmploymentId>1</EmploymentId>
<FromMonth>NotSet</FromMonth>
<FromYear>2</FromYear>
<Position>sample string 4</Position>
<ToMonth>NotSet</ToMonth>
<ToYear>3</ToYear>
</EmploymentsRequest>
</ArrayOfEmploymentsRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServiceResponseOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| HttpStatusCode | HttpStatusCode |
None. |
|
| ResponseMessage | string |
None. |
|
| HasError | boolean |
None. |
|
| Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"httpStatusCode": 100,
"responseMessage": "sample string 1",
"hasError": true,
"data": "sample string 3"
}
text/html
Sample:
{"httpStatusCode":100,"responseMessage":"sample string 1","hasError":true,"data":"sample string 3"}
text/xml
Sample:
<ServiceResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models"> <Data>sample string 3</Data> <HasError>true</HasError> <HttpStatusCode>Continue</HttpStatusCode> <ResponseMessage>sample string 1</ResponseMessage> </ServiceResponseOfstring>