POST api/WebModels

Request Information

URI Parameters

None.

Body Parameters

WebModelsModel
NameDescriptionTypeAdditional information
Id

integer

None.

ProductsId

integer

None.

ModelName

string

None.

ModelCode

string

None.

ModelPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductsId": 2,
  "ModelName": "sample string 3",
  "ModelCode": "sample string 4",
  "ModelPrice": 5.0
}

application/xml, text/xml

Sample:
<WebModelsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NoghostarModels.Models.WebModels">
  <Id>1</Id>
  <ModelCode>sample string 4</ModelCode>
  <ModelName>sample string 3</ModelName>
  <ModelPrice>5</ModelPrice>
  <ProductsId>2</ProductsId>
</WebModelsModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.