GET api/Product?ProductID={ProductID}&approve={approve}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProductID

integer

Required

approve

boolean

Required

Body Parameters

None.

Response Information

Resource Description

ResponseResult
NameDescriptionTypeAdditional information
ID

Returns ID of the Product

integer

None.

ResultMessage

Message of the request.

string

None.

Result

Boolean Result code.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "ResultMessage": "sample string 2",
  "Result": true
}

text/html

Sample:
{"ID":1,"ResultMessage":"sample string 2","Result":true}

application/xml, text/xml

Sample:
<ResponseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiTest.Models.Repository">
  <ID>1</ID>
  <Result>true</Result>
  <ResultMessage>sample string 2</ResultMessage>
</ResponseResult>