POST api/productcheck

Request Information

URI Parameters

None.

Body Parameters

CurrentProduct
NameDescriptionTypeAdditional information
Id

string

None.

Sensor1

decimal number

None.

Sensor2

decimal number

None.

Sensor3

decimal number

None.

Sensor4

decimal number

None.

Active

boolean

None.

Color

Color

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Sensor1": 2.1,
  "Sensor2": 3.1,
  "Sensor3": 4.1,
  "Sensor4": 5.1,
  "Active": true,
  "Color": {
    "Green": 1,
    "Red": 2,
    "Blue": 3
  }
}

application/xml, text/xml

Sample:
<CurrentProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QualityControl.Models">
  <Active>true</Active>
  <Color>
    <Blue>3</Blue>
    <Green>1</Green>
    <Red>2</Red>
  </Color>
  <Id>sample string 1</Id>
  <Sensor1>2.1</Sensor1>
  <Sensor2>3.1</Sensor2>
  <Sensor3>4.1</Sensor3>
  <Sensor4>5.1</Sensor4>
</CurrentProduct>

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.