GET api/Trainee/Exists/{ssn}
Determine whether a ssn is already being used. StatusDTO.id > 0 means the ssn is already being used. Id equals the trainee id of the existing trainee.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ssn | string |
Required |
Body Parameters
None.
Response Information
Resource Description
StatusDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"msg": "sample string 1"
}
text/html
Sample:
{"id":1,"msg":"sample string 1"}
application/xml, text/xml
Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL"> <id>1</id> <msg>sample string 1</msg> </StatusDTO>