Magento 2 Custom API: Need to create an API which gets the data from a table in databaseCustom module with custom database table and per store settingsMagento module is not creating the database table?Magento get unique values from custom database tableMagento: unable to create table from local extensionMagento2 need to create the download link in custom moduleMagento 2 Database table not creatingHow to read database from an existing table without setup resourcesMagento 2: How can we get custom value from custom table in product gridMagento 2: What is the best practice of storing and retrieving custom dataHow do I persist data in custom table in Magento Database (the right way)?

Is there a realtime, uncut video of Saturn V ignition through tower clear?

Vehemently against code formatting

Hotel booking: Why is Agoda much cheaper than booking.com?

Germany rejected my entry to Schengen countries

If you attack a Tarrasque while swallowed, what AC do you need to beat to hit it?

What to call a small, open stone or cement reservoir that supplies fresh water from a spring or other natural source?

How to tease a romance without a cat and mouse chase?

Will this series of events work to drown the Tarrasque?

How do we properly manage transitions within a descriptive section?

Difference in 1 user doing 1000 iterations and 1000 users doing 1 iteration in Load testing

tikz: 5 squares on a row, roman numbered 1 -> 5

Circuit construction for execution of conditional statements using least significant bit

Schwa-less Polysyllabic German Noun Stems of Germanic Origin

Does the fact that we can only measure the two-way speed of light undermine the axiom of invariance?

How should I mix small caps with digits or symbols?

What is this dime sized black bug with white on the segments near Loveland Colorodao?

Why use nominative in Coniugatio periphrastica passiva?

Separate the element after every 2nd ',' and push into next row in bash

Is presenting a play showing Military characters in a bad light a crime in the US?

Why is this python script running in background consuming 100 % CPU?

Is it wise to pay off mortgage with 401k?

How could the B-29 bomber back up under its own power?

Way of refund if scammed?

How can I use 400 ASA film in a Leica IIIf, which does not have options higher than 100?



Magento 2 Custom API: Need to create an API which gets the data from a table in database


Custom module with custom database table and per store settingsMagento module is not creating the database table?Magento get unique values from custom database tableMagento: unable to create table from local extensionMagento2 need to create the download link in custom moduleMagento 2 Database table not creatingHow to read database from an existing table without setup resourcesMagento 2: How can we get custom value from custom table in product gridMagento 2: What is the best practice of storing and retrieving custom dataHow do I persist data in custom table in Magento Database (the right way)?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have a magento store for which I was using the Magestore Bannerslider module to show a simple carousel on the homepage.



But now I am experimenting with a headless approach, and there's no API to get the banner details from the database.



Any ideas how will I create a custom API module to query the table of this module




magestore_bannerslider_banner




Thanks!










share|improve this question






















  • which version of magento are you using ?

    – user4536
    May 14 at 12:34

















0















I have a magento store for which I was using the Magestore Bannerslider module to show a simple carousel on the homepage.



But now I am experimenting with a headless approach, and there's no API to get the banner details from the database.



Any ideas how will I create a custom API module to query the table of this module




magestore_bannerslider_banner




Thanks!










share|improve this question






















  • which version of magento are you using ?

    – user4536
    May 14 at 12:34













0












0








0








I have a magento store for which I was using the Magestore Bannerslider module to show a simple carousel on the homepage.



But now I am experimenting with a headless approach, and there's no API to get the banner details from the database.



Any ideas how will I create a custom API module to query the table of this module




magestore_bannerslider_banner




Thanks!










share|improve this question














I have a magento store for which I was using the Magestore Bannerslider module to show a simple carousel on the homepage.



But now I am experimenting with a headless approach, and there's no API to get the banner details from the database.



Any ideas how will I create a custom API module to query the table of this module




magestore_bannerslider_banner




Thanks!







magento2 database rest-api banner-slider






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 14 at 10:22









FokkerFokker

7010




7010












  • which version of magento are you using ?

    – user4536
    May 14 at 12:34

















  • which version of magento are you using ?

    – user4536
    May 14 at 12:34
















which version of magento are you using ?

– user4536
May 14 at 12:34





which version of magento are you using ?

– user4536
May 14 at 12:34










1 Answer
1






active

oldest

votes


















0














Do you want to get the data from the database using rest? Are you using it internally (in the same code/site/environment)? Or you want to get the banners to somewhere externally?



If it is the second case, then you have to ask the developers to implement that.



If it is the first case, then you should just get the collection.



If you want to implement your own API that gets data from that table... well... it's not as easy.
You have to create a service contract for that.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f274518%2fmagento-2-custom-api-need-to-create-an-api-which-gets-the-data-from-a-table-in%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Do you want to get the data from the database using rest? Are you using it internally (in the same code/site/environment)? Or you want to get the banners to somewhere externally?



    If it is the second case, then you have to ask the developers to implement that.



    If it is the first case, then you should just get the collection.



    If you want to implement your own API that gets data from that table... well... it's not as easy.
    You have to create a service contract for that.






    share|improve this answer



























      0














      Do you want to get the data from the database using rest? Are you using it internally (in the same code/site/environment)? Or you want to get the banners to somewhere externally?



      If it is the second case, then you have to ask the developers to implement that.



      If it is the first case, then you should just get the collection.



      If you want to implement your own API that gets data from that table... well... it's not as easy.
      You have to create a service contract for that.






      share|improve this answer

























        0












        0








        0







        Do you want to get the data from the database using rest? Are you using it internally (in the same code/site/environment)? Or you want to get the banners to somewhere externally?



        If it is the second case, then you have to ask the developers to implement that.



        If it is the first case, then you should just get the collection.



        If you want to implement your own API that gets data from that table... well... it's not as easy.
        You have to create a service contract for that.






        share|improve this answer













        Do you want to get the data from the database using rest? Are you using it internally (in the same code/site/environment)? Or you want to get the banners to somewhere externally?



        If it is the second case, then you have to ask the developers to implement that.



        If it is the first case, then you should just get the collection.



        If you want to implement your own API that gets data from that table... well... it's not as easy.
        You have to create a service contract for that.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 14 at 11:20









        LuciLuci

        565




        565



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f274518%2fmagento-2-custom-api-need-to-create-an-api-which-gets-the-data-from-a-table-in%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form