Get tag list
Description
Retrieve a list of tags
Url
1 |
GET /api/v0/tag/ |
Parameters
optional
- name: filter by this exact match.
- name__contains: filter by case-sensitive containment.
Example
Request
1 |
curl 'https://my.craftar.net/api/v0/tag/?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": [ { "collection": "/api/v0/collection/1e20746d2529429ba9bf80e922d54ccd/", "name": "tag_example1", "resource_uri": "/api/v0/tag/1ca6bbfe7582470d8e26e840bc6fbfac/", "uuid": "1ca6bbfe7582470d8e26e840bc6fbfac" }, { "collection": "/api/v0/collection/1e20746d2529429ba9bf80e922d54ccd/", "name": "tag_example2", "resource_uri": "/api/v0/tag/f5865cb2175d4b929af138e2de86d738/", "uuid": "f5865cb2175d4b929af138e2de86d738" }, { "collection": "/api/v0/collection/63b6ebd0109948d7a92f5b947f7afc12/", "name": "test_example1", "resource_uri": "/api/v0/tag/4868294b74b44266a3d899d70b142fe1/", "uuid": "4868294b74b44266a3d899d70b142fe1" }, { "collection": "/api/v0/collection/63b6ebd0109948d7a92f5b947f7afc12/", "name": "test_example2", "resource_uri": "/api/v0/tag/5c1476e10f184908bc84d5f7db8536d8/", "uuid": "5c1476e10f184908bc84d5f7db8536d8" } ], "meta": { "total_count": 4, "previous": null, "offset": 0, "next": null, "limit": 20 } } |
Get all tags with name starting with the word tag
Request
1 |
curl 'https://my.craftar.net/api/v0/image/?api_key=123456789abcdefghijk123456789abcdefghijk&name__contains=tag' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
{ "objects": [ { "collection": "/api/v0/collection/1e20746d2529429ba9bf80e922d54ccd/", "name": "tag_example1", "resource_uri": "/api/v0/tag/1ca6bbfe7582470d8e26e840bc6fbfac/", "uuid": "1ca6bbfe7582470d8e26e840bc6fbfac" }, { "collection": "/api/v0/collection/1e20746d2529429ba9bf80e922d54ccd/", "name": "tag_example2", "resource_uri": "/api/v0/tag/f5865cb2175d4b929af138e2de86d738/", "uuid": "f5865cb2175d4b929af138e2de86d738" }, ], "meta": { "total_count": 2, "previous": null, "offset": 0, "next": null, "limit": 20 } } |