POST api/Weigh/SaveManPowerDetails

Request Information

URI Parameters

None.

Body Parameters

GetManPowerDetails
NameDescriptionTypeAdditional information
branch_id

integer

None.

shift_id

string

None.

apiKey

string

None.

date

string

None.

user_id

string

None.

machine

Collection of machine

None.

operater_cadre

Collection of Object

None.

manager_cadre

Collection of Object

None.

Request Formats

application/json, text/json

Sample:
{
  "branch_id": 1,
  "shift_id": "sample string 2",
  "apiKey": "sample string 3",
  "date": "sample string 4",
  "user_id": "sample string 5",
  "machine": [
    {
      "machine_id": 1,
      "cost": 2.1
    },
    {
      "machine_id": 1,
      "cost": 2.1
    }
  ],
  "operater_cadre": [
    {},
    {}
  ],
  "manager_cadre": [
    {},
    {}
  ]
}

application/xml, text/xml

Sample:
<WeighController.GetManPowerDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cenmark.WebApi.Controllers">
  <apiKey>sample string 3</apiKey>
  <branch_id>1</branch_id>
  <date>sample string 4</date>
  <machine>
    <WeighController.machine>
      <cost>2.1</cost>
      <machine_id>1</machine_id>
    </WeighController.machine>
    <WeighController.machine>
      <cost>2.1</cost>
      <machine_id>1</machine_id>
    </WeighController.machine>
  </machine>
  <manager_cadre xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </manager_cadre>
  <operater_cadre xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </operater_cadre>
  <shift_id>sample string 2</shift_id>
  <user_id>sample string 5</user_id>
</WeighController.GetManPowerDetails>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetManPowerDetails'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>