GET api/PSProducts
Gets all Products.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Products and Details
Collection of ProductName | Description | Type | Additional information |
---|---|---|---|
Id |
The unique identifier of the product. |
integer |
None. |
ProductName |
The name of the product. |
string |
None. |
Category |
The category of the product (men, women, electronics, kids, kitchen). |
string |
None. |
Description |
The description of the product. |
string |
None. |
Price |
The price of the product in two decimal places. |
decimal number |
None. |
SmallImageUrl |
The URL of the small-sized image of the product. |
string |
None. |
MediumImageUrl |
The URL of the medium-sized image of the product. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "ProductName": "sample string 2", "Category": "sample string 3", "Description": "sample string 4", "Price": 5.0, "SmallImageUrl": "sample string 6", "MediumImageUrl": "sample string 7" }, { "Id": 1, "ProductName": "sample string 2", "Category": "sample string 3", "Description": "sample string 4", "Price": 5.0, "SmallImageUrl": "sample string 6", "MediumImageUrl": "sample string 7" } ]
application/xml, text/xml
Sample:
<ArrayOfProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <Product> <Category>sample string 3</Category> <Description>sample string 4</Description> <Id>1</Id> <MediumImageUrl>sample string 7</MediumImageUrl> <Price>5</Price> <ProductName>sample string 2</ProductName> <SmallImageUrl>sample string 6</SmallImageUrl> </Product> <Product> <Category>sample string 3</Category> <Description>sample string 4</Description> <Id>1</Id> <MediumImageUrl>sample string 7</MediumImageUrl> <Price>5</Price> <ProductName>sample string 2</ProductName> <SmallImageUrl>sample string 6</SmallImageUrl> </Product> </ArrayOfProduct>