GET v1/Products/{productId}/Resources/{productResourceId}

Get detailed information about the Product's Resource

Request Information

Requires Authorization!

URI Parameters

NameDescriptionTypeAdditional information
productId

The Product id

integer

Required.

productResourceId

The Resource id

integer

Required.

Body Parameters

None.

Response Information

Resource Description

The Product Resource object


ProductResource
NameDescriptionTypeAdditional information
Id

The unique ShopCtrl Id field for the Resource.

integer

Required

CultureId

Gets or sets the culture identifier.

integer

None.

FileId

Gets or sets the File Id of the resource.

integer

None.

File

MetaData information of file referred by The file data is not loaded in the object and must be retrieved separatly.

File

None.

Name

Gets or sets the code.

string

Max length: 255

Data

Gets or sets the Data.

string

Max length: 2147483647

Sequence

A Sequence number which can be used to determine ordering.

integer

Required

ResourceType

The type of resource. Following values are allowed: 0=File 1=Link 2=SharedFile

integer

None.

ContentType

The type of resource. Following values are allowed: 0=Generic 1=Image 2=Movie 3=Document

integer

None.

ChangedTimestamp

A timestamp indicating the last save.

date

Required

CreatedTimestamp

The create timestamp.

date

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CultureId": 1,
  "FileId": 1,
  "File": {
    "Id": 1,
    "Filename": "sample string 2",
    "ChangedTimestamp": "2021-12-02T20:19:36.4197347+01:00",
    "CreatedTimestamp": "2021-12-02T20:19:36.4197347+01:00",
    "FileLength": 5,
    "Checksum": "sample string 6",
    "Sequence": 7,
    "Base64Data": "sample string 8"
  },
  "Name": "sample string 2",
  "Data": "sample string 3",
  "Sequence": 4,
  "ResourceType": 5,
  "ContentType": 6,
  "ChangedTimestamp": "2021-12-02T20:19:36.4197347+01:00",
  "CreatedTimestamp": "2021-12-02T20:19:36.4197347+01:00"
}

application/xml, text/xml

Sample:
<ProductResource xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <CultureId>1</CultureId>
  <FileId>1</FileId>
  <File>
    <Id>1</Id>
    <Filename>sample string 2</Filename>
    <ChangedTimestamp>2021-12-02T20:19:36.4197347+01:00</ChangedTimestamp>
    <CreatedTimestamp>2021-12-02T20:19:36.4197347+01:00</CreatedTimestamp>
    <FileLength>5</FileLength>
    <Checksum>sample string 6</Checksum>
    <Sequence>7</Sequence>
    <Base64Data>sample string 8</Base64Data>
  </File>
  <Name>sample string 2</Name>
  <Data>sample string 3</Data>
  <Sequence>4</Sequence>
  <ResourceType>5</ResourceType>
  <ContentType>6</ContentType>
  <ChangedTimestamp>2021-12-02T20:19:36.4197347+01:00</ChangedTimestamp>
  <CreatedTimestamp>2021-12-02T20:19:36.4197347+01:00</CreatedTimestamp>
</ProductResource>