POST api/User/Get1ByQuery
Find one user by search condition
Request Information
URI Parameters
None.
Body Parameters
To represent the search conditions. For example, {"loginName":"terry-j","FName":"Terry","LName":"Johnson"}
Dictionary of string [key] and string [value]Request Formats
application/json, text/json
Sample:
{ "sample string 1": "sample string 2", "sample string 3": "sample string 4" }
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfstringstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <KeyValueOfstringstring> <Key>sample string 1</Key> <Value>sample string 2</Value> </KeyValueOfstringstring> <KeyValueOfstringstring> <Key>sample string 3</Key> <Value>sample string 4</Value> </KeyValueOfstringstring> </ArrayOfKeyValueOfstringstring>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Find one user by search condition
API_Data_TShortLoginInfoName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | TShortLoginInfo |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "PersonID": 1, "LoginName": "sample string 2", "FullName": "sample string 3", "EmailAddress": "sample string 4", "LicenseType": 5, "Phone": "sample string 6", "IsActive": true, "IsAdministrator": true, "IsSampleUser": true } }
application/xml, text/xml
Sample:
<API_Data_TShortLoginInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SystemManage"> <d2p1:EmailAddress>sample string 4</d2p1:EmailAddress> <d2p1:FullName>sample string 3</d2p1:FullName> <d2p1:IsActive>true</d2p1:IsActive> <d2p1:IsAdministrator>true</d2p1:IsAdministrator> <d2p1:IsSampleUser>true</d2p1:IsSampleUser> <d2p1:LicenseType>5</d2p1:LicenseType> <d2p1:LoginName>sample string 2</d2p1:LoginName> <d2p1:PersonID>1</d2p1:PersonID> <d2p1:Phone>sample string 6</d2p1:Phone> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_TShortLoginInfo>