tvpl.api

<back to all web services

LoginHistoryRequest

Lấy lịch sử đăng nhập

Requires Authentication
Required role:super-admin
The following routes are available for this service:
GET/login-history
LoginHistoryRequest Parameters:
NameParameterData TypeRequiredDescription
UserIdqueryint?No
UserNamequerystringYes
StartDatequeryDateTime?No
EndDatequeryDateTime?No
PagequeryintNo
LimitqueryintNo
LoginHistoryRespnse Parameters:
NameParameterData TypeRequiredDescription
DataformList<UserLoginHistoryDto>No
TotalRecordsformintNo
CodeformintNo
MessageformstringYes
UserLoginHistoryDto Parameters:
NameParameterData TypeRequiredDescription
FailedLoginCountformint?No
UserLoginHistory Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserIdformintNo
UserNameformstringYes
IPAddressformstringYes
DeviceInfoformstringYes
LoginStatusformstringYes
FailReasonformstringYes
CreatedAtformDateTimeYes
ProviderformstringYes

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /login-history HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"data":[{"failedLoginCount":0,"id":0,"userId":0,"userName":"String","ipAddress":"String","deviceInfo":"String","loginStatus":"String","failReason":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","provider":"String"}],"totalRecords":0,"code":0,"message":"String"}