POST api/pu-machine

สร้างเครื่อง ประเภทเครื่อง A=Auto,M=Manual

Request Information

URI Parameters

None.

Body Parameters

m_machine_c
NameDescriptionTypeAdditional information
machine_name

string

None.

machine_type

string

None.

station_amount

signed byte

None.

Request Formats

application/json, text/json

Sample:
{
  "machine_name": "sample string 1",
  "machine_type": "sample string 2",
  "station_amount": 64
}

application/xml, text/xml

Sample:
<m_machine_c xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.PU.Machine">
  <machine_name>sample string 1</machine_name>
  <machine_type>sample string 2</machine_type>
  <station_amount>64</station_amount>
</m_machine_c>

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 'm_machine_c'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.