POST api/ProductType/Create
Request Information
URI Parameters
None.
Body Parameters
CreateProductTypeCommand| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductType | ProductTypeDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"productType": {
"id": 1,
"name": "sample string 1"
}
}
application/xml, text/xml
Sample:
<CreateProductTypeCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.Application">
<ProductType xmlns:d2p1="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.ViewModel">
<d2p1:Id>1</d2p1:Id>
<d2p1:Name>sample string 1</d2p1:Name>
</ProductType>
</CreateProductTypeCommand>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ProductTypeDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 1"
}
application/xml, text/xml
Sample:
<ProductTypeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.ViewModel"> <Id>1</Id> <Name>sample string 1</Name> </ProductTypeDTO>