JSON Rest API - Get Asset Details

Get Asset Details

Get Details of an asset

Request (POST)

URL

/assets/mediadb/services/module/asset/

Parameters

assetid: the asset's ID

Sample Request

curl -H "Content-Type: application/json" \
  -X POST http://entermedia.org/assets/mediadb/services/module/asset/ \
  -b 'entermedia.key=adminxxxx' \
  -d '{
  "assetid": "101",
}'

 

Response

Sample Response

{
  "response": {
    "status": "ok",
    "id": "101"
  },
  "data": {
    "name": "sample.jpg",
    "assettitle": "image1024x768-100mp",
    "importstatus": {
      "id": "complete",
      "name": "Complete"
    },
    "editstatus": {
      "id": "1",
      "name": "Pending"
    },
    "owner": {
      "id": "admin",
      "name": "The Administrator"
    }
  },
  "thumb": "http://entermediadb.org/assets/catalog/downloads/preview/thumb/2020/06/d7/aa27c4894/thumb.jpg",
  "preview": "http://entermediadb.org/assets/catalog/downloads/preview/large/2020/06/d7/aa27c4894/image.jpg",
  "original": "http://entermediadb.org/assets/mediadb/services/module/asset/downloads/originals/2020/06/d7/aa27c4894/sample.jpg"
}