POST api/ProductCategory/Create

Request Information

URI Parameters

None.

Body Parameters

CreateProductCategoryCommand
NameDescriptionTypeAdditional information
ProductCategory

ProductCategoryDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "productCategory": {
    "id": 1,
    "name": "sample string 1",
    "sapId": 1
  }
}

application/xml, text/xml

Sample:
<CreateProductCategoryCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.Application">
  <ProductCategory xmlns:d2p1="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.ViewModel">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:SapId>1</d2p1:SapId>
  </ProductCategory>
</CreateProductCategoryCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ProductCategoryDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

SapId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 1",
  "sapId": 1
}

application/xml, text/xml

Sample:
<ProductCategoryDTO 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>
  <SapId>1</SapId>
</ProductCategoryDTO>