GET api/staffs/salarycomponents

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SalaryComponentViewModel
NameDescriptionTypeAdditional information
id

integer

None.

Component

string

None.

IsDeduction

boolean

None.

TypeId

integer

None.

Type

string

None.

Figure

integer

None.

BaseSalaryComponentId

integer

None.

BaseSalaryComponent

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "Component": "sample string 2",
    "IsDeduction": true,
    "TypeId": 4,
    "Type": "sample string 5",
    "Figure": 1,
    "BaseSalaryComponentId": 1,
    "BaseSalaryComponent": "sample string 6"
  },
  {
    "id": 1,
    "Component": "sample string 2",
    "IsDeduction": true,
    "TypeId": 4,
    "Type": "sample string 5",
    "Figure": 1,
    "BaseSalaryComponentId": 1,
    "BaseSalaryComponent": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfSalaryComponentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.StaffDetails">
  <SalaryComponentViewModel>
    <BaseSalaryComponent>sample string 6</BaseSalaryComponent>
    <BaseSalaryComponentId>1</BaseSalaryComponentId>
    <Component>sample string 2</Component>
    <Figure>1</Figure>
    <IsDeduction>true</IsDeduction>
    <Type>sample string 5</Type>
    <TypeId>4</TypeId>
    <id>1</id>
  </SalaryComponentViewModel>
  <SalaryComponentViewModel>
    <BaseSalaryComponent>sample string 6</BaseSalaryComponent>
    <BaseSalaryComponentId>1</BaseSalaryComponentId>
    <Component>sample string 2</Component>
    <Figure>1</Figure>
    <IsDeduction>true</IsDeduction>
    <Type>sample string 5</Type>
    <TypeId>4</TypeId>
    <id>1</id>
  </SalaryComponentViewModel>
</ArrayOfSalaryComponentViewModel>