POST api/Products/Insert

Request Information

URI Parameters

None.

Body Parameters

Product
NameDescriptionTypeAdditional information
Id

integer

None.

IdCategory

integer

None.

IdBrand

integer

None.

Name

string

None.

Description

string

None.

CostPrice

decimal number

None.

SalePrice

decimal number

None.

Stock

integer

None.

WarrantyMonths

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IdCategory": 2,
  "IdBrand": 3,
  "Name": "sample string 4",
  "Description": "sample string 5",
  "CostPrice": 6.0,
  "SalePrice": 7.0,
  "Stock": 8,
  "WarrantyMonths": 9
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>