...
This module adds the possibility to remove generated product thumbnails through REST API thumbnails generated by the lazy resize module.
Installation
Info |
---|
This module is optional |
...
There are no admin settings.
Backend
Code Block |
---|
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
<route url="/V1/thumbnails/remove/name/:name"
method="DELETE">
<service class="MageSuite\ThumbnailRemove\Api\ThumbnailRemoveInterface" method="removeByName"/>
<resources>
<resource ref="self"/>
</resources>
</route> Backend documentation and general review is needed. Note