POST api/Product/AddProduct
Request Information
URI Parameters
None.
Body Parameters
ProductName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
ShortDescription | string |
None. |
|
Features | string |
None. |
|
Specifications | string |
None. |
|
HowToUse | string |
None. |
|
Url | string |
None. |
|
Photo1 | string |
None. |
|
Photo2 | string |
None. |
|
Photo3 | string |
None. |
|
Photo4 | string |
None. |
|
Photo5 | string |
None. |
|
Photo6 | string |
None. |
|
Photo7 | string |
None. |
|
Photo8 | string |
None. |
|
Photo9 | string |
None. |
|
Photo10 | string |
None. |
|
Status | string |
None. |
|
IsMen | string |
None. |
|
IsWomen | string |
None. |
|
IsBag | string |
None. |
|
Brochure | string |
None. |
|
CreatedBy | string |
None. |
|
CreatedDate | string |
None. |
|
UpdatedBy | string |
None. |
|
UpdatedDate | string |
None. |
|
sizes | Collection of SizeRate |
None. |
|
colors | Collection of ProductColor |
None. |
|
Photos | Collection of ProductPhoto |
None. |
|
IsDelete | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ShortDescription": "sample string 4", "Features": "sample string 5", "Specifications": "sample string 6", "HowToUse": "sample string 7", "Url": "sample string 8", "Photo1": "sample string 9", "Photo2": "sample string 10", "Photo3": "sample string 11", "Photo4": "sample string 12", "Photo5": "sample string 13", "Photo6": "sample string 14", "Photo7": "sample string 15", "Photo8": "sample string 16", "Photo9": "sample string 17", "Photo10": "sample string 18", "Status": "sample string 19", "IsMen": "sample string 20", "IsWomen": "sample string 21", "IsBag": "sample string 22", "Brochure": "sample string 23", "CreatedBy": "sample string 24", "CreatedDate": "sample string 25", "UpdatedBy": "sample string 26", "UpdatedDate": "sample string 27", "sizes": [ { "Id": 1, "ProductId": 2, "SizeId": 3, "Size": "sample string 4", "Rate": "sample string 5", "Status": "sample string 6", "Instock": "sample string 7" }, { "Id": 1, "ProductId": 2, "SizeId": 3, "Size": "sample string 4", "Rate": "sample string 5", "Status": "sample string 6", "Instock": "sample string 7" } ], "colors": [ { "Id": 1, "ProductId": 2, "ColorId": 3, "Color": "sample string 4" }, { "Id": 1, "ProductId": 2, "ColorId": 3, "Color": "sample string 4" } ], "Photos": [ { "Id": 1, "ProductId": 2, "ColorId": 3, "Color": "sample string 4", "Photo": "sample string 5" }, { "Id": 1, "ProductId": 2, "ColorId": 3, "Color": "sample string 4", "Photo": "sample string 5" } ], "IsDelete": "sample string 28" }
application/xml, text/xml
Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EcommerceWebApi.Models"> <Brochure>sample string 23</Brochure> <CreatedBy>sample string 24</CreatedBy> <CreatedDate>sample string 25</CreatedDate> <Description>sample string 3</Description> <Features>sample string 5</Features> <HowToUse>sample string 7</HowToUse> <Id>1</Id> <IsBag>sample string 22</IsBag> <IsDelete>sample string 28</IsDelete> <IsMen>sample string 20</IsMen> <IsWomen>sample string 21</IsWomen> <Name>sample string 2</Name> <Photo1>sample string 9</Photo1> <Photo10>sample string 18</Photo10> <Photo2>sample string 10</Photo2> <Photo3>sample string 11</Photo3> <Photo4>sample string 12</Photo4> <Photo5>sample string 13</Photo5> <Photo6>sample string 14</Photo6> <Photo7>sample string 15</Photo7> <Photo8>sample string 16</Photo8> <Photo9>sample string 17</Photo9> <Photos> <ProductPhoto> <Color>sample string 4</Color> <ColorId>3</ColorId> <Id>1</Id> <Photo>sample string 5</Photo> <ProductId>2</ProductId> </ProductPhoto> <ProductPhoto> <Color>sample string 4</Color> <ColorId>3</ColorId> <Id>1</Id> <Photo>sample string 5</Photo> <ProductId>2</ProductId> </ProductPhoto> </Photos> <ShortDescription>sample string 4</ShortDescription> <Specifications>sample string 6</Specifications> <Status>sample string 19</Status> <UpdatedBy>sample string 26</UpdatedBy> <UpdatedDate>sample string 27</UpdatedDate> <Url>sample string 8</Url> <colors> <ProductColor> <Color>sample string 4</Color> <ColorId>3</ColorId> <Id>1</Id> <ProductId>2</ProductId> </ProductColor> <ProductColor> <Color>sample string 4</Color> <ColorId>3</ColorId> <Id>1</Id> <ProductId>2</ProductId> </ProductColor> </colors> <sizes> <SizeRate> <Id>1</Id> <Instock>sample string 7</Instock> <ProductId>2</ProductId> <Rate>sample string 5</Rate> <Size>sample string 4</Size> <SizeId>3</SizeId> <Status>sample string 6</Status> </SizeRate> <SizeRate> <Id>1</Id> <Instock>sample string 7</Instock> <ProductId>2</ProductId> <Rate>sample string 5</Rate> <Size>sample string 4</Size> <SizeId>3</SizeId> <Status>sample string 6</Status> </SizeRate> </sizes> </Product>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.