URL | Method | Params | Description | Example |
---|---|---|---|---|
api/galleries/list/{resourceType}/{resourceId} | GET |
Get list of galleries for specified resource | ||
api/galleries/create | POST |
resourceType - Resource typeresourceId - Resource IDname - Gallery namemainImageId - Main image ID (optional) |
Create gallery | |
api/galleries/update/{id} | POST |
name - Gallery name (optional)mainImageId - Main image ID (optional) |
Update gallery | |
api/galleries/delete/{id} | POST |
Delete gallery |
Gallery ID: Delete |
URL | Method | Params | Description | Example |
---|---|---|---|---|
api/images/list/{resourceType}/{resourceId}/{galleryId} | GET |
pipelineId - Pipeline ID (optional)
|
Get all images for given resource. galleryId is optional |
|
api/images/image/{id} | GET |
pipelineId - optional |
Get image info. If pipelineId is included, it will return all image sizes for that pipeline. | |
api/images/exif/{id} | GET |
Get image EXIF data (JPEG images only). | ||
images/{pipelineId}/{size}/{imagePath} | GET |
View resized image | ||
api/images/create | POST |
imageUrl - Image URLresourceType - Resource typeresourceId - Resource IDgalleryId - Gallery ID (optional) |
Create image from URL. | |
api/images/upload | POST |
resourceType - Resource typeresourceId - Resource IDgalleryId - Gallery ID (optional) |
Upload image for resource. | |
api/images/main/{resourceType}/{resourceId} | POST |
imageId - Image to set as main |
Set image as main (for parent resource) | |
api/images/main/{resourceType}/{resourceId} | GET |
Get main image for given resource | ||
api/images/main_images | POST |
resources - JSON list of resources [{resourceType:x,resourceId:y},{…}]pipelineId - if specified, returns resized image urls |
Get main image for list of resources | |
api/images/delete/{id} | POST |
Delete image | ||
api/images/clear_cache/{pipelineId}/{size} api/images/clear_cache/{pipelineId} api/images/clear_cache |
POST |
Delete cached images Allowed parameter combinations: pipelineId + size - deletes images for specified pipeline and sizepipelineId - deletes all cached images for specified pipeline(none) - deletes all cached images |
||
api/images/clear/{resourceType}/{resourceId} | POST |
Delete all images for given resource |