POST api/product/insertOrUpdateCategory

Request Information

URI Parameters

None.

Body Parameters

CategoryModel
NameDescriptionTypeAdditional information
CategoryId

integer

None.

CategoryName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "CategoryName": "sample string 2"
}

application/xml, text/xml

Sample:
<CategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models">
  <CategoryId>1</CategoryId>
  <CategoryName>sample string 2</CategoryName>
</CategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseWrapper
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

Message

string

None.

Response

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "Message": "sample string 2",
  "Response": {}
}

application/xml, text/xml

Sample:
<ResponseWrapper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models">
  <Message>sample string 2</Message>
  <Response />
  <ResponseCode>1</ResponseCode>
</ResponseWrapper>