POST api/Factory/CreateFactory
Request Information
URI Parameters
None.
Body Parameters
md_factory_factory_CU| Name | Description | Type | Additional information |
|---|---|---|---|
| factory_name | string |
None. |
|
| locations | Collection of md_factory_location |
None. |
Request Formats
application/json, text/json
Sample:
{
"factory_name": "sample string 1",
"locations": [
{
"location": "sample string 1",
"location_id": 1,
"departments": [
{
"location_department": "sample string 1",
"isEnable": true,
"order": 3
},
{
"location_department": "sample string 1",
"isEnable": true,
"order": 3
}
]
},
{
"location": "sample string 1",
"location_id": 1,
"departments": [
{
"location_department": "sample string 1",
"isEnable": true,
"order": 3
},
{
"location_department": "sample string 1",
"isEnable": true,
"order": 3
}
]
}
]
}
application/xml, text/xml
Sample:
<md_factory_factory_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models">
<factory_name>sample string 1</factory_name>
<locations>
<md_factory_location>
<departments>
<md_factory_location_enable_department>
<isEnable>true</isEnable>
<location_department>sample string 1</location_department>
<order>3</order>
</md_factory_location_enable_department>
<md_factory_location_enable_department>
<isEnable>true</isEnable>
<location_department>sample string 1</location_department>
<order>3</order>
</md_factory_location_enable_department>
</departments>
<location>sample string 1</location>
<location_id>1</location_id>
</md_factory_location>
<md_factory_location>
<departments>
<md_factory_location_enable_department>
<isEnable>true</isEnable>
<location_department>sample string 1</location_department>
<order>3</order>
</md_factory_location_enable_department>
<md_factory_location_enable_department>
<isEnable>true</isEnable>
<location_department>sample string 1</location_department>
<order>3</order>
</md_factory_location_enable_department>
</departments>
<location>sample string 1</location>
<location_id>1</location_id>
</md_factory_location>
</locations>
</md_factory_factory_CU>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.