GET api/Product?ProductID={ProductID}&ProductName={ProductName}&ListPrice={ListPrice}&ProductNumber={ProductNumber}

Updates a specific product's ProductName, ListPrice and ProductNumber.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ProductID

Unique int ProductID

integer

Required

ProductName

Product Name

string

Required

ListPrice

List Price

decimal number

Required

ProductNumber

Product Number

string

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>