GET api/PSCategory

Gets all Products.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of Products and Details

Collection of Category
NameDescriptionTypeAdditional information
Id

The unique identifier of the Category.

integer

None.

CategoryName

The name of the Category.

string

None.

ImageURL

The Image of the product Category.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "CategoryName": "sample string 2",
    "ImageURL": "sample string 3"
  },
  {
    "Id": 1,
    "CategoryName": "sample string 2",
    "ImageURL": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <Category>
    <CategoryName>sample string 2</CategoryName>
    <Id>1</Id>
    <ImageURL>sample string 3</ImageURL>
  </Category>
  <Category>
    <CategoryName>sample string 2</CategoryName>
    <Id>1</Id>
    <ImageURL>sample string 3</ImageURL>
  </Category>
</ArrayOfCategory>