POST API/Product/Product?action={action}
Manage Product Action : Add/AddProductImage/DeleteProductImage/Update/DeleteRequired parameter(s) for Action(s):Add : objProduct{ProductName/ProductDescription/ProductImage/Quantity/UOM/UnitPrice, ProductCategory/AvailabilityCount/SubscriptionAvailable}.AddProductImage : ProductId/ProductName/ProductDescription/ProductImage.DeleteProductImage : ProductImageId.SetDefaultProductImage : ProductId/ProductImageId/DefaultProductImage.Update : ProductId/ProductName/ProductDescription/Quantity/UOM/ProductCategory/UnitPrice/AvailabilityCount/SubscriptionAvailable.Delete : ProductIdActivate : ProductIdGet : None.GetAll : None.GetDetails : ProductId
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
action |
Action : Add/AddProductImage/DeleteProductImage/Update/Delete |
string |
Required |
Body Parameters
Product Entity
ProductName | Description | Type | Additional information |
---|---|---|---|
ProductId | integer |
None. |
|
ProductName | string |
None. |
|
ProductDescription | string |
None. |
|
ProductImage | string |
None. |
|
Quantity | integer |
None. |
|
UOM | string |
None. |
|
UnitPrice | decimal number |
None. |
|
CategoryId | integer |
None. |
|
AvailabilityCount | integer |
None. |
|
ProductImageId | integer |
None. |
|
SubscriptionAvailable | boolean |
None. |
|
Length | integer |
None. |
|
Breadth | integer |
None. |
|
Height | integer |
None. |
|
Weight | decimal number |
None. |
|
Tax | integer |
None. |
Request Formats
application/json, text/json
{ "productId": 1, "productName": "sample string 1", "productDescription": "sample string 2", "productImage": "sample string 3", "quantity": 4, "uom": "sample string 5", "unitPrice": 6.0, "categoryId": 7, "availabilityCount": 8, "productImageId": 1, "subscriptionAvailable": true, "length": 10, "breadth": 11, "height": 12, "weight": 13.0, "tax": 14 }
application/xml, text/xml
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrownCow.Customer.EntityLayer"> <AvailabilityCount>8</AvailabilityCount> <Breadth>11</Breadth> <CategoryId>7</CategoryId> <Height>12</Height> <Length>10</Length> <ProductDescription>sample string 2</ProductDescription> <ProductId>1</ProductId> <ProductImage>sample string 3</ProductImage> <ProductImageId>1</ProductImageId> <ProductName>sample string 1</ProductName> <Quantity>4</Quantity> <SubscriptionAvailable>true</SubscriptionAvailable> <Tax>14</Tax> <UOM>sample string 5</UOM> <UnitPrice>6</UnitPrice> <Weight>13</Weight> </Product>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.