List all tags (tagcloud)

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

List all tags of a specific article

GET /api/article-tags?article_id={article_id}

Keywords can only be returned for a particular article.
Therefore article_id is a mandatory parameter.

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

Get a single tag

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

Create a tag

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

Delete tag

DELETE /api/article-tags/{id}