GET api/{DataId}/categories
Vráti zoznam všetkých kategórií (stromový zoznam)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataId |
Číslo dátového prostredia |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
CategoryName | Description | Type | Additional information |
---|---|---|---|
CategoryId |
Id kategórie (Oid) |
globally unique identifier |
None. |
ParentId |
Odkaz na rodiča (nadradenú kategóriu) |
globally unique identifier |
None. |
CategoryCode |
Kód kategórie |
string |
None. |
CategoryName |
Názov kategórie |
string |
None. |
CategoryDescription |
Popis kategórie |
string |
None. |
Images |
Obrázky. Aby sa obrázky načítali, musí byť správne nastavený parameter "CestaPreObrazky" v príslušnom súbore cs.xml |
Collection of ProductImage |
None. |
Response Formats
application/json, text/json
Sample:
{ "CategoryId": "d3ec6534-59f0-42ce-b5f3-12c0161dd8c3", "ParentId": "55bc0a80-933c-4b3b-9683-b76a1b032583", "CategoryCode": "sample string 2", "CategoryName": "sample string 3", "CategoryDescription": "sample string 4", "Images": [ { "ImageId": "bc8c8fc8-2c34-4326-a65d-82fb5099a4ed", "Name": "sample string 2", "Size": 3, "Width": 4, "Height": 5, "DateChanged": "2025-07-01T05:04:40.115231+02:00", "Type": "sample string 7" }, { "ImageId": "bc8c8fc8-2c34-4326-a65d-82fb5099a4ed", "Name": "sample string 2", "Size": 3, "Width": 4, "Height": 5, "DateChanged": "2025-07-01T05:04:40.115231+02:00", "Type": "sample string 7" } ] }
application/xml, text/xml
Sample:
<Category xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CategoryId>d3ec6534-59f0-42ce-b5f3-12c0161dd8c3</CategoryId> <ParentId>55bc0a80-933c-4b3b-9683-b76a1b032583</ParentId> <CategoryCode>sample string 2</CategoryCode> <CategoryName>sample string 3</CategoryName> <CategoryDescription>sample string 4</CategoryDescription> <Images> <ProductImage> <ImageId>bc8c8fc8-2c34-4326-a65d-82fb5099a4ed</ImageId> <Name>sample string 2</Name> <Size>3</Size> <Width>4</Width> <Height>5</Height> <DateChanged>2025-07-01T05:04:40.115231+02:00</DateChanged> <Type>sample string 7</Type> </ProductImage> <ProductImage> <ImageId>bc8c8fc8-2c34-4326-a65d-82fb5099a4ed</ImageId> <Name>sample string 2</Name> <Size>3</Size> <Width>4</Width> <Height>5</Height> <DateChanged>2025-07-01T05:04:40.115231+02:00</DateChanged> <Type>sample string 7</Type> </ProductImage> </Images> </Category>