GET api/consumer/v1/reports/timesheets/{periodId}/admin

Timesheets Status (Admin)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
periodId

Period

integer

Required

Body Parameters

None

Response Information

Resource Description

ReportTimesheetDto
NameDescriptionTypeAdditional information
Users

Collection of UserMinDto

None

OrganizationalUnits

Collection of OrganizationalUnitMinDto

None

Rows

Collection of ReportTimesheetItemDto

None

Response Formats

application/json, text/json

Sample:
{
  "Users": [
    {
      "Login": "sample string 1",
      "FullName": "sample string 2",
      "Avatar": "sample string 3",
      "Id": 4
    },
    {
      "Login": "sample string 1",
      "FullName": "sample string 2",
      "Avatar": "sample string 3",
      "Id": 4
    }
  ],
  "OrganizationalUnits": [
    {
      "Code": "sample string 1",
      "Description": "sample string 2",
      "Id": 3
    },
    {
      "Code": "sample string 1",
      "Description": "sample string 2",
      "Id": 3
    }
  ],
  "Rows": [
    {
      "UserId": 1,
      "PeriodUserId": 1,
      "PeriodStateId": 1,
      "SupervisorId": 1,
      "OrganizationalUnitId": 1,
      "Hours": 2.0,
      "HoursTimeOffTotal": 3.0,
      "HoursTimeOffApproved": 4.0,
      "HoursTimeOffWaiting": 5.0,
      "HoursTotal": 6.0,
      "UserName": "sample string 7",
      "SupervisorName": "sample string 8",
      "PeriodState": "sample string 9",
      "WaitingApprovers": [
        {
          "Login": "sample string 1",
          "FullName": "sample string 2",
          "Avatar": "sample string 3",
          "Id": 4
        },
        {
          "Login": "sample string 1",
          "FullName": "sample string 2",
          "Avatar": "sample string 3",
          "Id": 4
        }
      ]
    },
    {
      "UserId": 1,
      "PeriodUserId": 1,
      "PeriodStateId": 1,
      "SupervisorId": 1,
      "OrganizationalUnitId": 1,
      "Hours": 2.0,
      "HoursTimeOffTotal": 3.0,
      "HoursTimeOffApproved": 4.0,
      "HoursTimeOffWaiting": 5.0,
      "HoursTotal": 6.0,
      "UserName": "sample string 7",
      "SupervisorName": "sample string 8",
      "PeriodState": "sample string 9",
      "WaitingApprovers": [
        {
          "Login": "sample string 1",
          "FullName": "sample string 2",
          "Avatar": "sample string 3",
          "Id": 4
        },
        {
          "Login": "sample string 1",
          "FullName": "sample string 2",
          "Avatar": "sample string 3",
          "Id": 4
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ReportTimesheetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models">
  <OrganizationalUnits>
    <OrganizationalUnitMinDto>
      <Id>3</Id>
      <Code>sample string 1</Code>
      <Description>sample string 2</Description>
    </OrganizationalUnitMinDto>
    <OrganizationalUnitMinDto>
      <Id>3</Id>
      <Code>sample string 1</Code>
      <Description>sample string 2</Description>
    </OrganizationalUnitMinDto>
  </OrganizationalUnits>
  <Rows>
    <ReportTimesheetItemDto>
      <Hours>2</Hours>
      <HoursTimeOffApproved>4</HoursTimeOffApproved>
      <HoursTimeOffTotal>3</HoursTimeOffTotal>
      <HoursTimeOffWaiting>5</HoursTimeOffWaiting>
      <HoursTotal>6</HoursTotal>
      <OrganizationalUnitId>1</OrganizationalUnitId>
      <PeriodState>sample string 9</PeriodState>
      <PeriodStateId>1</PeriodStateId>
      <PeriodUserId>1</PeriodUserId>
      <SupervisorId>1</SupervisorId>
      <SupervisorName>sample string 8</SupervisorName>
      <UserId>1</UserId>
      <UserName>sample string 7</UserName>
      <WaitingApprovers>
        <UserMinDto>
          <Id>4</Id>
          <Avatar>sample string 3</Avatar>
          <FullName>sample string 2</FullName>
          <Login>sample string 1</Login>
        </UserMinDto>
        <UserMinDto>
          <Id>4</Id>
          <Avatar>sample string 3</Avatar>
          <FullName>sample string 2</FullName>
          <Login>sample string 1</Login>
        </UserMinDto>
      </WaitingApprovers>
    </ReportTimesheetItemDto>
    <ReportTimesheetItemDto>
      <Hours>2</Hours>
      <HoursTimeOffApproved>4</HoursTimeOffApproved>
      <HoursTimeOffTotal>3</HoursTimeOffTotal>
      <HoursTimeOffWaiting>5</HoursTimeOffWaiting>
      <HoursTotal>6</HoursTotal>
      <OrganizationalUnitId>1</OrganizationalUnitId>
      <PeriodState>sample string 9</PeriodState>
      <PeriodStateId>1</PeriodStateId>
      <PeriodUserId>1</PeriodUserId>
      <SupervisorId>1</SupervisorId>
      <SupervisorName>sample string 8</SupervisorName>
      <UserId>1</UserId>
      <UserName>sample string 7</UserName>
      <WaitingApprovers>
        <UserMinDto>
          <Id>4</Id>
          <Avatar>sample string 3</Avatar>
          <FullName>sample string 2</FullName>
          <Login>sample string 1</Login>
        </UserMinDto>
        <UserMinDto>
          <Id>4</Id>
          <Avatar>sample string 3</Avatar>
          <FullName>sample string 2</FullName>
          <Login>sample string 1</Login>
        </UserMinDto>
      </WaitingApprovers>
    </ReportTimesheetItemDto>
  </Rows>
  <Users>
    <UserMinDto>
      <Id>4</Id>
      <Avatar>sample string 3</Avatar>
      <FullName>sample string 2</FullName>
      <Login>sample string 1</Login>
    </UserMinDto>
    <UserMinDto>
      <Id>4</Id>
      <Avatar>sample string 3</Avatar>
      <FullName>sample string 2</FullName>
      <Login>sample string 1</Login>
    </UserMinDto>
  </Users>
</ReportTimesheetDto>