ImageAssets
Get All Image Assets GET /imageassets/
Description
Request all image assets.
Properties
Title
Get all image assets
URL
/imageassets/
Method
GET
Headers
Name | Value | Required | Description |
|---|---|---|---|
Authorization | Token xxxxx | yes | Authorization token required to communicate with the API. |
URL Params
Name | Type | Required | Description |
|---|---|---|---|
limit | integer | no | Limit the number of objects to return. |
| offset | integer | no | Do not return the first x objects, where x is the amount specified by offset. |
path_file | string | no | Filter parameter to only list image assets with the given |
Success Response
200 - OK
[
{
"id": 1,
"name": "Image Asset name",
"description": "Image asset description",
"production": 1,
"status_asset": 6,
"path_file": "/path/to/image_asset.jpg",
"device": 2,
"is_archive": false,
"is_production": true,
"meta_field_store": {}
},...
]
Error Response
Sample Call
curl -X GET http://medialoopster-url/api/imageassets/
Get Single Image Asset GET /imageassets/{id}/
Description
Request a single image asset.
Properties
Title
Get single image asset
URL
/imageassets/{id}/
Method
GET
Headers
Name | Value | Required | Description |
|---|---|---|---|
Authorization | Token xxxxx | yes | Authorization token required to communicate with the API. |
URL Params
None
Data Params
None
Success Response
200 - OK
{
"id": 1,
"name": "Image Asset Name",
"description": "Image asset description",
"production": 1,
"status_asset": 6,
"path_file": "/path/to/image_asset.jpg",
"device": 2,
"is_archive": false,
"is_production": true,
"meta_field_store": {...},
...
}
Error Response
404 - Not Found
{
"errors": [
{
"status": "404",
"code": "not_found",
"detail": "ImageAsset object with pk=u'{id}' does not exist.",
"title": "Not Found"
}
]
}
Sample Call
curl -X GET http://medialoopster-url/api/imageassets/1/
Create Image AssetPOST /imageassets/
Work in progress!
Description
Create a new image asset.
Properties
Title
Create image asset
URL
/imageassets/
Method
POST
Headers
Name | Value | Required | Description |
|---|---|---|---|
Authorization | Token xxxxx | yes | Authorization token required to communicate with the API. |
Content-Type | application/json | no | If the request body is sent as raw data instead of form-data this header needs to be set as well. |
Data Params
Success Response
200 - OK
Error Response
400 - Bad Request
422 - Unprocessable Entity
Sample Call
curl -X POST http://medialoopster-url/api/imageassets/ \
-d '{
}'