magento-2-banner-slider
magento-2-banner-slider copied to clipboard
REST API
Is there is a REST API for this extension, so I can use for mobile developer?
@msliman have you found an answer to your question?
@msliman @VladSuciu76 there is no REST API available.
Can you please tell us which class, functions ... do you need? So we will make a plan.
@imsamthomas Would be nice provide API for getting banners per slider name (or better rename name to code):
interface SliderRepositoryInterface
{
/**
* Get banners list.
*
* @param string $code
*
* @return BannerInterface[]
*/
public function getBanners(string $code);
}
interface BannerInterface
{
const NAME = 'name';
const IMAGE = 'image';
const URL = 'url';
/**
* @return string
*/
public function getName();
/**
* @param string $name
*
* @return $this
*/
public function setName($name);
/**
* @return string
*/
public function getImage();
/**
* @param string $image
*
* @return $this
*/
public function setImage($image);
/**
* @return string|null
*/
public function getUrl();
/**
* @param string $url
*
* @return $this
*/
public function setUrl($url);
}