POST api/Employee/WeeklyTimeSlip

Request Information

URI Parameters

None.

Body Parameters

WeeklyTimeSlipViewModel
NameDescriptionTypeAdditional information
ByProjectId

integer

None.

ProjectTask

string

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.

ByTimeTrackingId

integer

None.

LanguageId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ByProjectId": 1,
  "ProjectTask": "sample string 2",
  "CurrentWeekNo": 3,
  "Hours1": 1.0,
  "Hours2": 1.0,
  "Hours3": 1.0,
  "Hours4": 1.0,
  "Hours5": 1.0,
  "Hours6": 1.0,
  "Hours7": 1.0,
  "Comment": "sample string 4",
  "ByTimeTrackingId": 5,
  "LanguageId": 6
}

text/html

Sample:
{"ByProjectId":1,"ProjectTask":"sample string 2","CurrentWeekNo":3,"Hours1":1.0,"Hours2":1.0,"Hours3":1.0,"Hours4":1.0,"Hours5":1.0,"Hours6":1.0,"Hours7":1.0,"Comment":"sample string 4","ByTimeTrackingId":5,"LanguageId":6}

application/xml, text/xml

Sample:
<WeeklyTimeSlipViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <ByProjectId>1</ByProjectId>
  <ByTimeTrackingId>5</ByTimeTrackingId>
  <Comment>sample string 4</Comment>
  <CurrentWeekNo>3</CurrentWeekNo>
  <Hours1>1</Hours1>
  <Hours2>1</Hours2>
  <Hours3>1</Hours3>
  <Hours4>1</Hours4>
  <Hours5>1</Hours5>
  <Hours6>1</Hours6>
  <Hours7>1</Hours7>
  <LanguageId>6</LanguageId>
  <ProjectTask>sample string 2</ProjectTask>
</WeeklyTimeSlipViewModel>

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.