POST api/Model/AddModel

Request Information

URI Parameters

None.

Body Parameters

ModelAddDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

Name

string

None.

BrandId

integer

None.

Price

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "Name": "sample string 3",
  "BrandId": 4,
  "Price": 1
}

application/xml, text/xml

Sample:
<ModelAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <BrandId>4</BrandId>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <Price>1</Price>
  <UserId>2</UserId>
</ModelAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Status

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Message": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <Data />
  <Message>sample string 2</Message>
  <Status>1</Status>
</Response>