Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

https://github.com/magesuite/thumbnail-remove

This module adds the possibility to remove through REST API thumbnails generated by the lazy resize module.

Installation

This module is optional

composer require "creativestyle/magesuite-thumbnail-remove" ^1.0.0

Admin settings

There are no admin settings.

Backend

const FILE_NAME_FORMAT = '/%s/%s/%s';
const IMAGE_PATH_FORMAT = '%s/pub/media/catalog/product/%s';
<route url="/V1/thumbnails/remove/sku/:sku" method="DELETE">
    <service class="MageSuite\ThumbnailRemove\Api\ThumbnailRemoveInterface" method="removeBySku"/>
    <resources>
        <resource ref="self"/>
    </resources>
</route>
<route url="/V1/thumbnails/remove/name/:name" method="DELETE">
    <service class="MageSuite\ThumbnailRemove\Api\ThumbnailRemoveInterface" method="removeByName"/>
    <resources>
        <resource ref="self"/>
    </resources>
</route>

  • No labels