POST api/Headphones

Request Information

URI Parameters

None.

Body Parameters

Headphone
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Category

string

None.

Price

decimal number

None.

WarehouseId

integer

None.

Warehouse

Warehouse

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Category": "sample string 3",
  "Price": 4.0,
  "WarehouseId": 5,
  "Warehouse": {
    "Id": 1,
    "Warehouse_Name": "sample string 2"
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Headphone
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Category

string

None.

Price

decimal number

None.

WarehouseId

integer

None.

Warehouse

Warehouse

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Category": "sample string 3",
  "Price": 4.0,
  "WarehouseId": 5,
  "Warehouse": {
    "Id": 1,
    "Warehouse_Name": "sample string 2"
  }
}