GET api/{DataId}/categories/{CategoryId}
Vráti konkrétnu kategóriu zo stromového zoznamu kategórií
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
DataId |
Číslo dátového prostredia |
string |
Required |
CategoryId |
Oid (Guid) kategórie |
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": "bb0ae976-a0af-4296-80ce-0f4b7e3d5730", "ParentId": "477802ea-5a6f-4948-9c1d-5c9dbcc58806", "CategoryCode": "sample string 2", "CategoryName": "sample string 3", "CategoryDescription": "sample string 4", "Images": [ { "ImageId": "74c617c3-0cec-4622-ba35-d64d33a712cc", "Name": "sample string 2", "Size": 3, "Width": 4, "Height": 5, "DateChanged": "2024-04-19T02:10:14.98175+02:00", "Type": "sample string 7" }, { "ImageId": "74c617c3-0cec-4622-ba35-d64d33a712cc", "Name": "sample string 2", "Size": 3, "Width": 4, "Height": 5, "DateChanged": "2024-04-19T02:10:14.98175+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>bb0ae976-a0af-4296-80ce-0f4b7e3d5730</CategoryId> <ParentId>477802ea-5a6f-4948-9c1d-5c9dbcc58806</ParentId> <CategoryCode>sample string 2</CategoryCode> <CategoryName>sample string 3</CategoryName> <CategoryDescription>sample string 4</CategoryDescription> <Images> <ProductImage> <ImageId>74c617c3-0cec-4622-ba35-d64d33a712cc</ImageId> <Name>sample string 2</Name> <Size>3</Size> <Width>4</Width> <Height>5</Height> <DateChanged>2024-04-19T02:10:14.98175+02:00</DateChanged> <Type>sample string 7</Type> </ProductImage> <ProductImage> <ImageId>74c617c3-0cec-4622-ba35-d64d33a712cc</ImageId> <Name>sample string 2</Name> <Size>3</Size> <Width>4</Width> <Height>5</Height> <DateChanged>2024-04-19T02:10:14.98175+02:00</DateChanged> <Type>sample string 7</Type> </ProductImage> </Images> </Category>