POST api/Consumable/CreateAndUpdateSave
新增,修改 保存
Request Information
URI Parameters
None.
Body Parameters
DAL.t_consumable| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| PicUrl | string |
None. |
|
| Amount | integer |
None. |
|
| Unit | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"PicUrl": "sample string 3",
"Amount": 1,
"Unit": "sample string 4"
}
application/xml, text/xml
Sample:
<t_consumable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL"> <Amount>1</Amount> <Id>1</Id> <Name>sample string 2</Name> <PicUrl>sample string 3</PicUrl> <Unit>sample string 4</Unit> </t_consumable>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Web.Http.Results.JsonResultOfDAL.HandleResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Content | DAL.HandleResult |
None. |
|
| SerializerSettings | Newtonsoft.Json.JsonSerializerSettings |
None. |
|
| Encoding | System.Text.Encoding |
None. |
|
| Request | System.Net.Http.HttpRequestMessage |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.