Skip to content

DSigmund/ardemotionsapi

Repository files navigation

Emotag API

Extension of the Code-Data-Model:

https://developer.ard.de/docs/ard-core-datamodel

Add the Tables:

  • Emotions (sad, haha, angry, ...), time (TC,full)
  • Tags (string, id), time (TC, full)
  • Tags_x_Items (m:n for tags and items)

Draw.io-XML [ARD Core Emotion API.xml]

![ARD Core Emotion API.png]

Postman-Collection [ARDCore Emotion API.postman_collection.json]

PUT

Add an emotion or a Tag to an Item by ID

//asset-dev.ardmediathek.de/asset-api/item/:id

Emotion to ID

Add an Emotion with the time-code

{
    "emotion":"string",
    "time":"00:00:00"
}

Tags to ID

Add a Tag with the time-code

{
    "tags": [
        "string",
        "..."
    ],
    "time":"00:00:00"
}

GET

Get additional emotion / tag info with the item

Emotions / Tags by Item

Get an Item, Response includes now emotions and tags

//asset-dev.ardmediathek.de/asset-api/item/:id

{
    "id":"xxx",
    "emotions": [
        {
            "emotion":"string",
            "time":"00:00:00",
            "added":"2019-02-13T14:00:00"
        }
    ],
    "tags": [
        {
            "tag":"string",
            "time":"00:00:00",
            "added":"2019-02-13T14:00:00"
        }
    ]
}

List of Emotions with AssetIds

Get a List of Items by the emotion used

//asset-dev.ardmediathek.de/asset-api/emotions/:emotion

[
    {
        "id":"xxx",
        "time":"00:00:00",
        "added":"2019-02-13T14:00:00"
    }
]

List of Tags with AssetIds

Get a List of Items by the Tag used

//asset-dev.ardmediathek.de/asset-api/tags/:tag

[
    {
        "id":"xxx",
        "time":"00:00:00",
        "added":"2019-02-13T14:00:00"
    }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published