magento-2-banner-slider icon indicating copy to clipboard operation
magento-2-banner-slider copied to clipboard

REST API

Open msliman opened this issue 8 years ago • 3 comments

Is there is a REST API for this extension, so I can use for mobile developer?

msliman avatar Apr 10 '17 07:04 msliman

@msliman have you found an answer to your question?

VladSuciu76 avatar Jun 10 '17 05:06 VladSuciu76

@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 avatar Jun 30 '17 10:06 imsamthomas

@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);
}

Koc avatar Nov 11 '18 18:11 Koc