| Required role: | super-admin |
| GET | /login-history |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserId | query | int? | No | |
| UserName | query | string | Yes | |
| StartDate | query | DateTime? | No | |
| EndDate | query | DateTime? | No | |
| Page | query | int | No | |
| Limit | query | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | List<UserLoginHistoryDto> | No | |
| TotalRecords | form | int | No | |
| Code | form | int | No | |
| Message | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FailedLoginCount | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| UserId | form | int | No | |
| UserName | form | string | Yes | |
| IPAddress | form | string | Yes | |
| DeviceInfo | form | string | Yes | |
| LoginStatus | form | string | Yes | |
| FailReason | form | string | Yes | |
| CreatedAt | form | DateTime | Yes | |
| Provider | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=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"}