Resources Types

Getting a resource :

GET /v1/clients/:client_id/projects/:project_is/resources/:resource_id

Base Resource Schema

Key Type Example
_id String
"4e43f42909e50d0e9f00002e"
_type String
"Resources::Image"
client_id String
"4e43f42909e50d0e9f000031"
project_id String
"4e43f42909e50d0e9f000030"
can_edit Boolean
false
default Boolean
false
filename String
"Image.jpg"
name String
"An image"
published Boolean
true
paths Hash
{
  "original": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbBzoGcDoMbm90aGluZw",
  "thumb": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSIKODB4NjAGOwZU",
  "small": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSIMMjAweDE1MAY7BlQ",
  "medium": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSIMNTAweDUwMAY7BlQ",
  "large": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSINMTAyNHg3NjgGOwZU",
  "rc_180_240": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoUcmVzaXplX2FuZF9jcm9wewc6CndpZHRoSSIIMTgwBjsGVDoLaGVpZ2h0SSIIMjQwBjsGVA"
}
published
Required boolean - indicates if the Resource has already been published, ie if there is at least one Publication for the Resource
can_edit
Required boolean - indicates if the resource can be modified
default
Required boolean- indicates if the Resource can be used as the default Resource for a Project
filename
Required string - Name of the orignal file
name
Required string - Name of the Resource displayed to the end user
description
Optional string - A short text of description for the Resource
paths
Required Hash[string,string] - Key/values containing the fully qualified urls for the different available formats of the Resource

Resources::Image

Status: 200 OK
{
  "_id": "4e43f42909e50d0e9f00002e",
  "_type": "Resources::Image",
  "client_id": "4e43f42909e50d0e9f000031",
  "project_id": "4e43f42909e50d0e9f000030",
  "can_edit": false,
  "default": false,
  "filename": "Image.jpg",
  "name": "An image",
  "published": true,
  "paths": {
    "original": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbBzoGcDoMbm90aGluZw",
    "thumb": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSIKODB4NjAGOwZU",
    "small": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSIMMjAweDE1MAY7BlQ",
    "medium": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSIMNTAweDUwMAY7BlQ",
    "large": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoLcmVzaXplSSINMTAyNHg3NjgGOwZU",
    "rc_180_240": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSIOaGVsbG8uanBnBjoGRVRbCDoGcDoUcmVzaXplX2FuZF9jcm9wewc6CndpZHRoSSIIMTgwBjsGVDoLaGVpZ2h0SSIIMjQwBjsGVA"
  }
}

Resources::Video

Status: 200 OK
{
  "_id": "4e43f42909e50d0e9f000051",
  "_type": "Resources::Video",
  "client_id": "4e43f42909e50d0e9f000053",
  "project_id": "4e43f42909e50d0e9f000052",
  "can_edit": true,
  "default": false,
  "description": "A great video",
  "name": "A video",
  "published": false,
  "paths": {
    "original": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSILMTIzemJjBjoGRVRbBzoGcDoMbm90aGluZw",
    "thumb": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSILMTIzemJjBjoGRVRbCDoGcDoLcmVzaXplSSIKODB4NjAGOwZU",
    "small": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSILMTIzemJjBjoGRVRbCDoGcDoLcmVzaXplSSIMMjAweDE1MAY7BlQ",
    "medium": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSILMTIzemJjBjoGRVRbCDoGcDoLcmVzaXplSSIMNTAweDUwMAY7BlQ",
    "iphone_thumb": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSILMTIzemJjBjoGRVRbCDoGcDoLcmVzaXplSSIMMjAweDIwMAY7BlQ",
    "iphone_medium": "http://assets.oahu.fr/media/BAhbB1sHOgZmSSILMTIzemJjBjoGRVRbCDoGcDoLcmVzaXplSSIMMzIweDQ4MAY7BlQ",
    "base_480_400": "http://bucket.amazon3.com/123.flv",
    "high_480_450": "http://bucket.amazon3.com/123.mp4",
    "high_480_1000": "http://bucket.amazon3.com/123.mp4",
    "high_960_450": "http://bucket.amazon3.com/123.mp4",
    "high_960_750": "http://bucket.amazon3.com/123.mp4",
    "high_960_1800": "http://bucket.amazon3.com/123.mp4"
  }
}