GET api/Product/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Product
NameDescriptionTypeAdditional information
Id

integer

None.

Ean

string

None.

CategoryId

integer

None.

CategoryName

string

None.

BrandId

integer

None.

BrandName

string

None.

Name

string

None.

Description

string

None.

Price

decimal number

None.

InStock

boolean

None.

ExpectedRestock

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Ean": "sample string 2",
  "CategoryId": 3,
  "CategoryName": "sample string 4",
  "BrandId": 5,
  "BrandName": "sample string 6",
  "Name": "sample string 7",
  "Description": "sample string 8",
  "Price": 9.1,
  "InStock": true,
  "ExpectedRestock": "2025-04-29T14:38:18.3336187+00:00"
}

application/xml, text/xml

Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UnderCutters.Service.ViewModels">
  <BrandId>5</BrandId>
  <BrandName>sample string 6</BrandName>
  <CategoryId>3</CategoryId>
  <CategoryName>sample string 4</CategoryName>
  <Description>sample string 8</Description>
  <Ean>sample string 2</Ean>
  <ExpectedRestock>2025-04-29T14:38:18.3336187+00:00</ExpectedRestock>
  <Id>1</Id>
  <InStock>true</InStock>
  <Name>sample string 7</Name>
  <Price>9.1</Price>
</Product>