POST api/Employee/CreateWeeklyTimeSlip

Request Information

URI Parameters

None.

Body Parameters

DailyTimeSlipDetails
NameDescriptionTypeAdditional information
ProjectsID

integer

None.

ProjectName

string

None.

IsBillAble

boolean

None.

IsInvoice

boolean

None.

TaskName

string

None.

UsersName

string

None.

EmployeeId

integer

None.

TaskId

integer

None.

ProjectList

Collection of SelectListItem

None.

ProjectTask

string

None.

FromDate

date

None.

IsProjectDropdownDisabled

boolean

None.

ProjectTaskList

Collection of SelectListItem

None.

TaskHours

string

None.

WeekList

Collection of SelectListItem

None.

CurrentWeekNo

integer

None.

Hours1

decimal number

None.

Hours2

decimal number

None.

Hours3

decimal number

None.

Hours4

decimal number

None.

Hours5

decimal number

None.

Hours6

decimal number

None.

Hours7

decimal number

None.

Comment

string

None.

TimeSlipId

integer

None.

TimeTrackingId

integer

None.

TimeTrackingHours

decimal number

None.

SelectedTimeSlipType

string

None.

CreatedDate

date

None.

ColorCodeId

string

None.

CurrentTimer

date

None.

IsTrackingTimer

boolean

None.

LanguageId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectsID": 1,
  "ProjectName": "sample string 2",
  "IsBillAble": true,
  "IsInvoice": true,
  "TaskName": "sample string 3",
  "UsersName": "sample string 4",
  "EmployeeId": 5,
  "TaskId": 1,
  "ProjectList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "ProjectTask": "sample string 6",
  "FromDate": "2021-10-27T08:48:18.6331763+01:00",
  "IsProjectDropdownDisabled": true,
  "ProjectTaskList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "TaskHours": "sample string 8",
  "WeekList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "CurrentWeekNo": 9,
  "Hours1": 1.0,
  "Hours2": 1.0,
  "Hours3": 1.0,
  "Hours4": 1.0,
  "Hours5": 1.0,
  "Hours6": 1.0,
  "Hours7": 1.0,
  "Comment": "sample string 10",
  "TimeSlipId": 11,
  "TimeTrackingId": 12,
  "TimeTrackingHours": 13.0,
  "SelectedTimeSlipType": "sample string 14",
  "CreatedDate": "2021-10-27T08:48:18.6331763+01:00",
  "ColorCodeId": "sample string 15",
  "CurrentTimer": "2021-10-27T08:48:18.6331763+01:00",
  "IsTrackingTimer": true,
  "LanguageId": 16
}

text/html

Sample:
{"ProjectsID":1,"ProjectName":"sample string 2","IsBillAble":true,"IsInvoice":true,"TaskName":"sample string 3","UsersName":"sample string 4","EmployeeId":5,"TaskId":1,"ProjectList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"ProjectTask":"sample string 6","FromDate":"2021-10-27T08:48:18.6331763+01:00","IsProjectDropdownDisabled":true,"ProjectTaskList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"TaskHours":"sample string 8","WeekList":[{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"},{"Disabled":true,"Group":{"Disabled":true,"Name":"sample string 2"},"Selected":true,"Text":"sample string 3","Value":"sample string 4"}],"CurrentWeekNo":9,"Hours1":1.0,"Hours2":1.0,"Hours3":1.0,"Hours4":1.0,"Hours5":1.0,"Hours6":1.0,"Hours7":1.0,"Comment":"sample string 10","TimeSlipId":11,"TimeTrackingId":12,"TimeTrackingHours":13.0,"SelectedTimeSlipType":"sample string 14","CreatedDate":"2021-10-27T08:48:18.6331763+01:00","ColorCodeId":"sample string 15","CurrentTimer":"2021-10-27T08:48:18.6331763+01:00","IsTrackingTimer":true,"LanguageId":16}

application/xml, text/xml

Sample:
<DailyTimeSlipDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <ColorCodeId>sample string 15</ColorCodeId>
  <Comment>sample string 10</Comment>
  <CreatedDate>2021-10-27T08:48:18.6331763+01:00</CreatedDate>
  <CurrentTimer>2021-10-27T08:48:18.6331763+01:00</CurrentTimer>
  <CurrentWeekNo>9</CurrentWeekNo>
  <EmployeeId>5</EmployeeId>
  <FromDate>2021-10-27T08:48:18.6331763+01:00</FromDate>
  <Hours1>1</Hours1>
  <Hours2>1</Hours2>
  <Hours3>1</Hours3>
  <Hours4>1</Hours4>
  <Hours5>1</Hours5>
  <Hours6>1</Hours6>
  <Hours7>1</Hours7>
  <IsBillAble>true</IsBillAble>
  <IsInvoice>true</IsInvoice>
  <IsProjectDropdownDisabled>true</IsProjectDropdownDisabled>
  <IsTrackingTimer>true</IsTrackingTimer>
  <LanguageId>16</LanguageId>
  <ProjectList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </ProjectList>
  <ProjectName>sample string 2</ProjectName>
  <ProjectTask>sample string 6</ProjectTask>
  <ProjectTaskList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </ProjectTaskList>
  <ProjectsID>1</ProjectsID>
  <SelectedTimeSlipType>sample string 14</SelectedTimeSlipType>
  <TaskHours>sample string 8</TaskHours>
  <TaskId>1</TaskId>
  <TaskName>sample string 3</TaskName>
  <TimeSlipId>11</TimeSlipId>
  <TimeTrackingHours>13</TimeTrackingHours>
  <TimeTrackingId>12</TimeTrackingId>
  <UsersName>sample string 4</UsersName>
  <WeekList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </WeekList>
</DailyTimeSlipDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.