POST api/GetUserDetails?strSRPToken={strSRPToken}&strLoginID={strLoginID}&strUserRole={strUserRole}
This is the function to authenticate the requested user by login ID and userrole
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| strSRPToken | string |
Required |
|
| strLoginID | string |
Required |
|
| strUserRole | string |
Required |
Body Parameters
None.
Response Information
Resource Description
SRPUserDetailResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid |
Status to check the requestor is valid user or not |
boolean |
None. |
| UserRole |
Requestor's userrole |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsValid": true,
"UserRole": "sample string 2"
}
application/xml, text/xml
Sample:
<SRPUserDetailResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CAGRASWebApi.Models"> <IsValid>true</IsValid> <UserRole>sample string 2</UserRole> </SRPUserDetailResult>