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;
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
add a comment |
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
which version of magento are you using ?
– user4536
May 14 at 12:34
add a comment |
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
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
magento2 database rest-api banner-slider
asked May 14 at 10:22
FokkerFokker
7010
7010
which version of magento are you using ?
– user4536
May 14 at 12:34
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered May 14 at 11:20
LuciLuci
565
565
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
which version of magento are you using ?
– user4536
May 14 at 12:34