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": "8423cbd1-5852-4f4d-a28a-33c5ef251e8b", "ParentId": "018856db-b2cc-4d2b-95e0-06ba5da6a36b", "CategoryCode": "sample string 2", "CategoryName": "sample string 3", "CategoryDescription": "sample string 4", "Images": [ { "ImageId": "00326793-ae34-4dd1-98a8-21259db4f671", "Name": "sample string 2", "Size": 3, "Width": 4, "Height": 5, "DateChanged": "2024-04-19T17:01:45.0125+02:00", "Type": "sample string 7" }, { "ImageId": "00326793-ae34-4dd1-98a8-21259db4f671", "Name": "sample string 2", "Size": 3, "Width": 4, "Height": 5, "DateChanged": "2024-04-19T17:01:45.0125+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>8423cbd1-5852-4f4d-a28a-33c5ef251e8b</CategoryId> <ParentId>018856db-b2cc-4d2b-95e0-06ba5da6a36b</ParentId> <CategoryCode>sample string 2</CategoryCode> <CategoryName>sample string 3</CategoryName> <CategoryDescription>sample string 4</CategoryDescription> <Images> <ProductImage> <ImageId>00326793-ae34-4dd1-98a8-21259db4f671</ImageId> <Name>sample string 2</Name> <Size>3</Size> <Width>4</Width> <Height>5</Height> <DateChanged>2024-04-19T17:01:45.0125+02:00</DateChanged> <Type>sample string 7</Type> </ProductImage> <ProductImage> <ImageId>00326793-ae34-4dd1-98a8-21259db4f671</ImageId> <Name>sample string 2</Name> <Size>3</Size> <Width>4</Width> <Height>5</Height> <DateChanged>2024-04-19T17:01:45.0125+02:00</DateChanged> <Type>sample string 7</Type> </ProductImage> </Images> </Category>