POST api/worker/Set

Request Information

URI Parameters

None.

Body Parameters

SetWorkerBindingModel
NameDescriptionTypeAdditional information
WorkerId

integer

None.

ManagerId

integer

Required

Name

string

Required

Base64Image

string

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkerId": 1,
  "ManagerId": 2,
  "Name": "sample string 3",
  "Base64Image": "sample string 4"
}

application/xml, text/xml

Sample:
<SetWorkerBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.BindingModel">
  <Base64Image>sample string 4</Base64Image>
  <ManagerId>2</ManagerId>
  <Name>sample string 3</Name>
  <WorkerId>1</WorkerId>
</SetWorkerBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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:12:47.5829766+00:00"
}

application/xml, text/xml

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