GET api/TimeTrack/GetDropdownValues?accountType={accountType}&userId={userId}&loggedDate={loggedDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountType

integer

Required

userId

string

Required

loggedDate

date

Required

Body Parameters

None.

Response Information

Resource Description

TimeLogDefaultLoadData
NameDescriptionTypeAdditional information
Projects

Collection of Project

None.

DefaulltDropDownsData

Collection of SelectListModel

None.

TotalOverTimeOfCurrentWeek

integer

None.

OvertimeAllowedPerWeek

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Projects": [
    {
      "Id": 1,
      "Value": "sample string 2",
      "IsActive": true,
      "AccountTypeId": 4,
      "ProjectNo": "sample string 5",
      "IsTimeLogEnable": true
    },
    {
      "Id": 1,
      "Value": "sample string 2",
      "IsActive": true,
      "AccountTypeId": 4,
      "ProjectNo": "sample string 5",
      "IsTimeLogEnable": true
    }
  ],
  "DefaulltDropDownsData": [
    {
      "Id": 1,
      "Type": "sample string 2",
      "Name": "sample string 3",
      "Value": "sample string 4",
      "order": 5
    },
    {
      "Id": 1,
      "Type": "sample string 2",
      "Name": "sample string 3",
      "Value": "sample string 4",
      "order": 5
    }
  ],
  "TotalOverTimeOfCurrentWeek": 1,
  "OvertimeAllowedPerWeek": 2
}

application/xml, text/xml

Sample:
<TimeLogDefaultLoadData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nokon.Nappen.Core.ViewModels">
  <DefaulltDropDownsData xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nokon.Nappen.Core.Entities">
    <d2p1:SelectListModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:Type>sample string 2</d2p1:Type>
      <d2p1:Value>sample string 4</d2p1:Value>
      <d2p1:order>5</d2p1:order>
    </d2p1:SelectListModel>
    <d2p1:SelectListModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:Type>sample string 2</d2p1:Type>
      <d2p1:Value>sample string 4</d2p1:Value>
      <d2p1:order>5</d2p1:order>
    </d2p1:SelectListModel>
  </DefaulltDropDownsData>
  <OvertimeAllowedPerWeek>2</OvertimeAllowedPerWeek>
  <Projects xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nokon.Nappen.Data.Entities">
    <d2p1:Project>
      <d2p1:AccountTypeId>4</d2p1:AccountTypeId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsTimeLogEnable>true</d2p1:IsTimeLogEnable>
      <d2p1:ProjectNo>sample string 5</d2p1:ProjectNo>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:Project>
    <d2p1:Project>
      <d2p1:AccountTypeId>4</d2p1:AccountTypeId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsTimeLogEnable>true</d2p1:IsTimeLogEnable>
      <d2p1:ProjectNo>sample string 5</d2p1:ProjectNo>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:Project>
  </Projects>
  <TotalOverTimeOfCurrentWeek>1</TotalOverTimeOfCurrentWeek>
</TimeLogDefaultLoadData>