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

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

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?