POST api/PumpAndroid/SaveItem/{name}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| name | string |
None. |
Body Parameters
Item| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemNo | integer |
None. |
|
| ItemName | string |
None. |
|
| Price | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"ItemNo": 1,
"ItemName": "sample string 2",
"Price": 3.1
}
application/xml, text/xml
Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PumpAndroid.Models"> <ItemName>sample string 2</ItemName> <ItemNo>1</ItemNo> <Price>3.1</Price> </Item>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| Status | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"Status": 2
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApp.Models"> <Message>sample string 1</Message> <Status>2</Status> </Response>