GET api/worker/GetAll?ManagerId={ManagerId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ManagerId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of WorkerViewModel
NameDescriptionTypeAdditional information
WorkerId

integer

None.

ManagerId

integer

None.

Name

string

None.

ImageUrl

string

None.

LastUpdate

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "WorkerId": 1,
    "ManagerId": 2,
    "Name": "sample string 3",
    "ImageUrl": "sample string 4",
    "LastUpdate": "2019-07-23T12:13:29.3329669+00:00"
  },
  {
    "WorkerId": 1,
    "ManagerId": 2,
    "Name": "sample string 3",
    "ImageUrl": "sample string 4",
    "LastUpdate": "2019-07-23T12:13:29.3329669+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWorkerViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <WorkerViewModel>
    <ImageUrl>sample string 4</ImageUrl>
    <LastUpdate>2019-07-23T12:13:29.3329669+00:00</LastUpdate>
    <ManagerId>2</ManagerId>
    <Name>sample string 3</Name>
    <WorkerId>1</WorkerId>
  </WorkerViewModel>
  <WorkerViewModel>
    <ImageUrl>sample string 4</ImageUrl>
    <LastUpdate>2019-07-23T12:13:29.3329669+00:00</LastUpdate>
    <ManagerId>2</ManagerId>
    <Name>sample string 3</Name>
    <WorkerId>1</WorkerId>
  </WorkerViewModel>
</ArrayOfWorkerViewModel>