GET api/Account/GetUserHistory?username={username}&pageIndex={pageIndex}&pageSize={pageSize}

Gets user's history of activities. Pagination is supported.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

username to get his/her history (optional).

string

Required

pageIndex

Optional page index (default is 0).

integer

None.

pageSize

Optional page size (default is 1000).

integer

None.

Body Parameters

None.

Response Information

Resource Description

GetUserHistoryResult
NameDescriptionTypeAdditional information
History

A page with user histories.

UserHistory

None.

Response Formats

application/json, text/json

Sample:
{
  "History": {
    "PageIndex": 1,
    "PageSize": 10,
    "TotalItems": 1,
    "TotalPages": 1,
    "Items": [
      {
        "Username": "john.doe",
        "DateUtc": "2024-05-16T01:00:21.1877134Z",
        "Ip": "192.168.1.1",
        "Source": 1
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetUserHistoryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <History>
    <Items>
      <GetUserHistoryResult.UserHistory>
        <DateUtc>2024-05-16T01:00:21.1877134Z</DateUtc>
        <Ip>192.168.1.1</Ip>
        <Source>Web</Source>
        <Username>john.doe</Username>
      </GetUserHistoryResult.UserHistory>
    </Items>
    <PageIndex>1</PageIndex>
    <PageSize>10</PageSize>
    <TotalItems>1</TotalItems>
    <TotalPages>1</TotalPages>
  </History>
</GetUserHistoryResult>