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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	data: 
	[
		{
			failedLoginCount: 0,
			id: 0,
			userId: 0,
			userName: String,
			ipAddress: String,
			deviceInfo: String,
			loginStatus: String,
			failReason: String,
			provider: String
		}
	],
	totalRecords: 0,
	code: 0,
	message: String
}