Artikel-Attribute

Alle Attri­bute eines Arti­kels auflisten

GET /api/article-property-values?article_id={article_id}

Attri­bute kön­nen immer nur für einen bestimm­ten Arti­kel zurück­ge­ge­ben wer­den.
Des­halb ist article_id ein Pflichtparameter.

<?xml version="1.0" encoding="UTF-8"?>
<article-property-values type="array">
    <article-property-value>
        ...
    </article-property-value>
    <article-property-value>
        ...
    </article-property-value>
</article-property-values>

Ein­zel­nes Attri­but aufrufen

GET /api/article-property-values/{id}
<?xml version="1.0" encoding="UTF-8"?>
<article-property-value>
    <id type="integer">1</id>
    <article_id type="integer">2</article_id>
    <article_property_id type="integer">3</article_property_id>
    <type>TEXTFIELD</type>
    <name>Farbe</name>
    <value>blau</value>
</article-property-value>

Attri­but setzen

POST /api/article-property-values
XML-Element Beschrei­bung Typ Default-Wert Pflicht­feld
article_id ID des Arti­kel INT ja
article_property_id ID des Attri­buts INT ja
value Wert des Attributs ALNUM ja
<article-property-value>
    <article_id>2</article_id>
    <article_property_id>3</article_property_id>
    <value>rot</value>
</article-property-value>
<?xml version="1.0" encoding="UTF-8"?>
<article-property-value>
    <id type="integer">1</id>
    <article_id type="integer">2</article_id>
    <article_property_id type="integer">3</article_property_id>
    <type>TEXTFIELD</type>
    <name>Farbe</name>
    <value>rot</value>
</article-property-value>