POST api/PersonalWorkTemplate/Query

Query personal work template list

Request Information

URI Parameters

None.

Body Parameters

PersonalWorkTemplateListBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

PageIndex

integer

None.

PageSize

integer

None.

PersonId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "PageIndex": 2,
  "PageSize": 3,
  "PersonId": 4
}

application/xml, text/xml

Sample:
<PersonalWorkTemplateListBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <PageIndex>2</PageIndex>
  <PageSize>3</PageSize>
  <PersonId>4</PersonId>
  <ProjectId>1</ProjectId>
</PersonalWorkTemplateListBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Query personal work template list

API_Data_PersonalWorkTemplateList
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

PersonalWorkTemplateList

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "Total": 1,
    "Items": [
      {
        "PersonId": 1,
        "StandardWorkTemplateId": 1,
        "PersonName": "sample string 1",
        "ProjectId": 2,
        "TemplateId": 3,
        "Title": "sample string 4",
        "Points": 1,
        "SystemWorkType": 1,
        "WorkType": 1,
        "WorkTypeName": "sample string 5"
      },
      {
        "PersonId": 1,
        "StandardWorkTemplateId": 1,
        "PersonName": "sample string 1",
        "ProjectId": 2,
        "TemplateId": 3,
        "Title": "sample string 4",
        "Points": 1,
        "SystemWorkType": 1,
        "WorkType": 1,
        "WorkTypeName": "sample string 5"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<API_Data_PersonalWorkTemplateList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
    <d2p1:Items>
      <d2p1:PersonalWorkTemplateListItem>
        <d2p1:Points>1</d2p1:Points>
        <d2p1:ProjectId>2</d2p1:ProjectId>
        <d2p1:SystemWorkType>1</d2p1:SystemWorkType>
        <d2p1:TemplateId>3</d2p1:TemplateId>
        <d2p1:Title>sample string 4</d2p1:Title>
        <d2p1:WorkType>1</d2p1:WorkType>
        <d2p1:WorkTypeName>sample string 5</d2p1:WorkTypeName>
        <d2p1:PersonId>1</d2p1:PersonId>
        <d2p1:PersonName>sample string 1</d2p1:PersonName>
        <d2p1:StandardWorkTemplateId>1</d2p1:StandardWorkTemplateId>
      </d2p1:PersonalWorkTemplateListItem>
      <d2p1:PersonalWorkTemplateListItem>
        <d2p1:Points>1</d2p1:Points>
        <d2p1:ProjectId>2</d2p1:ProjectId>
        <d2p1:SystemWorkType>1</d2p1:SystemWorkType>
        <d2p1:TemplateId>3</d2p1:TemplateId>
        <d2p1:Title>sample string 4</d2p1:Title>
        <d2p1:WorkType>1</d2p1:WorkType>
        <d2p1:WorkTypeName>sample string 5</d2p1:WorkTypeName>
        <d2p1:PersonId>1</d2p1:PersonId>
        <d2p1:PersonName>sample string 1</d2p1:PersonName>
        <d2p1:StandardWorkTemplateId>1</d2p1:StandardWorkTemplateId>
      </d2p1:PersonalWorkTemplateListItem>
    </d2p1:Items>
    <d2p1:Total>1</d2p1:Total>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_PersonalWorkTemplateList>