List all tags (tagcloud)

GET /api/supplier-tags
<?xml version="1.0" encoding="UTF-8"?>
<supplier-tags type="array" page="1" per_page="100" total="2">
    <supplier-tag>
        <id type="integer">1</id>
        <name>foo</name>
        <count type="integer">12</count>
    </supplier-tag>
    <supplier-tag>
        <id type="integer">1</id>
        <name>bar</name>
        <count type="integer">7</count>
    </supplier-tag>
</supplier-tags>

List all tags of a specific client

GET /api/supplier-tags?supplier_id={supplier_id}

Keywords can only be returned for a particular supplier.
Therefore supplier_id is a mandatory parameter.

<?xml version="1.0" encoding="UTF-8"?>
<supplier-tags type="array" page="1" per_page="100" total="2">
    <supplier-tag>
        ...
    </supplier-tag>
    <supplier-tag>
        ...
    </supplier-tag>
</supplier-tags>

Get a single tag

GET /api/supplier-tags/{id}
<?xml version="1.0" encoding="UTF-8"?>
<supplier-tag>
    <id type="integer">1</id>
    <supplier_id type="integer">1</supplier_id>
    <name>foo</name>
</supplier-tag>

Create a tag

POST /api/supplier-tags
XML Element Description Type Default value Mandatory
supplier_id ID of the supplier INT ja
name Tag ALNUM ja
<supplier-tag>
    <supplier_id>1</supplier_id>
    <name>foo</name>
</supplier-tag>
<?xml version="1.0" encoding="UTF-8"?>
<supplier-tag>
    <id type="integer">1</id>
    <supplier_id type="integer">1</supplier_id>
    <name>foo</name>
</supplier-tag>

Delete tag

DELETE /api/supplier-tags/{id}