Get image list
Description
Retrieve a list of images
Url
1 |
GET /api/v0/image/ |
Parameters
optional
- name: filter by this exact match.
- name__contains: filter by case-sensitive containment.
- item__uuid: filter by item UUID.
- item__name: filter by item by this exact match.
- item__name__contains: filter by item by case-sensitive containment.
- item__collection__uuid: filter by item’s collection UUID.
- item__collection__name: filter by item’s collection name, using this exact match.
- item__collection__name__contains: filter by item’s collection name, using case-sensitive containment.
- status: filter by image status (ER or OK).
Example
Request
1 |
curl 'https://my.craftar.net/api/v0/image/?api_key=123456789abcdefghijk123456789abcdefghijk' |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
{ "objects": [ { "uuid": "3b07a7d76056467db7c06891ebdc0b56", "file": "https://example.com/collections/440c374d09424243b9448cd289545db1/images/4fe672886ec142f6ab6d72d54acf046f_3b07a7d76056467db7c06891ebdc0b56", "item": "/api/v0/item/4fe672886ec142f6ab6d72d54acf046f/", "name": "linux_magazine.jpg", "resource_uri": "/api/v0/image/3b07a7d76056467db7c06891ebdc0b56/", "status": "OK", "quality": 0.78, "thumb_120": "https://example.com/cache/collections/440c374d09424243b9448cd289545db1/images/4fe672886ec142f6ab6d72d54acf046f_3b07a7d76056467db7c06891ebdc0b56_thumb_120.jpe", "thumb_60": "https://example.com/cache/collections/440c374d09424243b9448cd289545db1/images/4fe672886ec142f6ab6d72d54acf046f_3b07a7d76056467db7c06891ebdc0b56_thumb_60.jpe", "tracking_data_status": "NO" }, { "uuid": "4bae1eb8db724d0980cd9774239c095e", "file": "https://example.com/collections/806e54535ffd464f83545c902e664aca/images/a046a5f3fbe44399a95a0e8efe3fb8eb_4bae1eb8db724d0980cd9774239c095e", "item": "/api/v0/item/a046a5f3fbe44399a95a0e8efe3fb8eb/", "name": "mona_lisa.jpg", "resource_uri": "/api/v0/image/4bae1eb8db724d0980cd9774239c095e/", "status": "OK", "quality": 0.84, "thumb_120": "https://example.com/cache/collections/806e54535ffd464f83545c902e664aca/images/a046a5f3fbe44399a95a0e8efe3fb8eb_4bae1eb8db724d0980cd9774239c095e_thumb_120.jpe", "thumb_60": "https://example.com/cache/collections/806e54535ffd464f83545c902e664aca/images/a046a5f3fbe44399a95a0e8efe3fb8eb_4bae1eb8db724d0980cd9774239c095e_thumb_60.jpe", "tracking_data_status": "NO" } ], "meta": { "total_count": 2, "previous": null, "offset": 0, "next": null, "limit": 20 } } |
Get all images from the Item whose UUID is a046a5f3fbe44399a95a0e8efe3fb8eb
Request
1 |
curl 'https://my.craftar.net/api/v0/image/?api_key=123456789abcdefghijk123456789abcdefghijk&item__uuid=a046a5f3fbe44399a95a0e8efe3fb8eb' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
{ "objects": [ { "uuid": "4bae1eb8db724d0980cd9774239c095e", "file": "https://example.com/collections/806e54535ffd464f83545c902e664aca/images/a046a5f3fbe44399a95a0e8efe3fb8eb_4bae1eb8db724d0980cd9774239c095e", "item": "/api/v0/item/a046a5f3fbe44399a95a0e8efe3fb8eb/", "name": "mona_lisa.jpg", "resource_uri": "/api/v0/image/4bae1eb8db724d0980cd9774239c095e/", "status": "OK", "thumb_120": "https://example.com/cache/collections/806e54535ffd464f83545c902e664aca/images/a046a5f3fbe44399a95a0e8efe3fb8eb_4bae1eb8db724d0980cd9774239c095e_thumb_120.jpe", "thumb_60": "https://example.com/cache/collections/806e54535ffd464f83545c902e664aca/images/a046a5f3fbe44399a95a0e8efe3fb8eb_4bae1eb8db724d0980cd9774239c095e_thumb_60.jpe", "tracking_data_status": "NO" } ], "meta": { "total_count": 1, "previous": null, "offset": 0, "next": null, "limit": 20 } } |
Get all images from the item’s collection whose UUID is 440c374d09424243b9448cd289545db1
Request
1 |
curl 'https://my.craftar.net/api/v0/image/?api_key=123456789abcdefghijk123456789abcdefghijk&item__collection__uuid=440c374d09424243b9448cd289545db1' |
Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
{ "objects": [ { "uuid": "3b07a7d76056467db7c06891ebdc0b56", "file": "https://example.com/collections/440c374d09424243b9448cd289545db1/images/4fe672886ec142f6ab6d72d54acf046f_3b07a7d76056467db7c06891ebdc0b56", "item": "/api/v0/item/4fe672886ec142f6ab6d72d54acf046f/", "name": "linux_magazine.jpg", "resource_uri": "/api/v0/image/3b07a7d76056467db7c06891ebdc0b56/", "status": "OK", "thumb_120": "https://example.com/cache/collections/440c374d09424243b9448cd289545db1/images/4fe672886ec142f6ab6d72d54acf046f_3b07a7d76056467db7c06891ebdc0b56_thumb_120.jpe", "thumb_60": "https://example.com/cache/collections/440c374d09424243b9448cd289545db1/images/4fe672886ec142f6ab6d72d54acf046f_3b07a7d76056467db7c06891ebdc0b56_thumb_60.jpe", "tracking_data_status": "NO" } ], "meta": { "total_count": 1, "previous": null, "offset": 0, "next": null, "limit": 20 } } |