Get also none product image thumbnails via API #3207
Labels
3: Medium complexity
feature request
Requests for new features. Please be as specific as possible and provide proposal API if it you can
P3: Normal
Priority mark - normal priority
Milestone
What is the motivation for adding / enhancing this feature?
At the moment it seems only to be possible to fetch product images thumbnails via the api (for Magento 1 and 2).
As I implement some CMS data to our Vue-Storefront I noticed that it might be a good core feature to also fetch images which are not in the `/media/catalog/product" folder.
In fact this is a feature which is deeply implemented everywhere in the core and theme and you would need to extend the API as well if you ad a new endpoint. This will be a lot of code changes.
I think the best way would be to extend the current
getThumbnail()
by a path parameter which might be set in theconfig.json
for the different types (cms/product).What are the acceptance criteria
getThumbnail()
to add a/media
path with default product path as default parameter to get product images as usual to prevent to change the theme and core modules at all placesimages
forproduct_path
andcms_path
imgUrl
inmagento1
andmagento2
platform settings to/media
base path without/catalog/product
or maybe useassetPath
Can you complete this feature request by yourself?
Which Release Cycle state this refers to? Info for developer.
Pick one option.
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
.release
branch and create Pull Request3. Stabilisation fix
back torelease
.hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.Additional information
none
The text was updated successfully, but these errors were encountered: