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]
Add an emotion or a Tag to an Item by ID
//asset-dev.ardmediathek.de/asset-api/item/:id
Add an Emotion with the time-code
{
"emotion":"string",
"time":"00:00:00"
}
Add a Tag with the time-code
{
"tags": [
"string",
"..."
],
"time":"00:00:00"
}
Get additional emotion / tag info with the 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"
}
]
}
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"
}
]
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"
}
]