How to creator a custom router in pwa magento 2.3.1How to use PWA in Magento2?Magento2 : How to Create custom theme in PWA StudioHow to change URL of PWA in Magento 2.3?Magento PWA: issue in starting development serverMagento2 : How to call background image in PWAStatic Block stylesheet is not applied in PWAMagento 2.3.1 | Continuously Redirecting To Homepage & Getting “Invalid Form Key. Please refresh the page” ErrorPWA Store Deployment on server - DevelopmentHow to setup PWA in magento 2.3.1?Magento 2.3.1 modals-wrapper causing errors
How (un)safe is it to ride barefoot?
What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?
How can I remove material from this wood beam?
Grandpa has another non math question
The origin of the Russian proverb about two hares
Was planting UN flag on Moon ever discussed?
Remove border lines of SRTM tiles rendered as hillshade
Cathode rays and the cathode rays tube
How to avoid typing 'git' at the begining of every Git command
Assigning function to function pointer, const argument correctness?
A Salute to Poetry
What are the unintended or dangerous consequences of allowing spells that target and damage creatures to also target and damage objects?
Can I use 220v outlets on a 15 amp breaker and wire it up as 110v?
Trying to get (more) accurate readings from thermistor (electronics, math, and code inside)
The significance of kelvin as a unit of absolute temperature
How can powerful telekinesis avoid violating Newton's 3rd Law?
Is Lambda Calculus purely syntactic?
Why is long-term living in Almost-Earth causing severe health problems?
Does putting salt first make it easier for attacker to bruteforce the hash?
As easy as Three, Two, One... How fast can you go from Five to Four?
Does a (nice) centerless group always have a centerless profinite completion?
YA book about blind creatures that live underground and take kid's eyes
Print "N NE E SE S SW W NW"
Is Dumbledore a human lie detector?
How to creator a custom router in pwa magento 2.3.1
How to use PWA in Magento2?Magento2 : How to Create custom theme in PWA StudioHow to change URL of PWA in Magento 2.3?Magento PWA: issue in starting development serverMagento2 : How to call background image in PWAStatic Block stylesheet is not applied in PWAMagento 2.3.1 | Continuously Redirecting To Homepage & Getting “Invalid Form Key. Please refresh the page” ErrorPWA Store Deployment on server - DevelopmentHow to setup PWA in magento 2.3.1?Magento 2.3.1 modals-wrapper causing errors
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to create a custom router in pwa.
I want to create blogs url. ( website.com/blogs )
so I can show all blogs list here.
Is anyone have an idea about this?
magento2.3.1 pwa
add a comment |
I want to create a custom router in pwa.
I want to create blogs url. ( website.com/blogs )
so I can show all blogs list here.
Is anyone have an idea about this?
magento2.3.1 pwa
add a comment |
I want to create a custom router in pwa.
I want to create blogs url. ( website.com/blogs )
so I can show all blogs list here.
Is anyone have an idea about this?
magento2.3.1 pwa
I want to create a custom router in pwa.
I want to create blogs url. ( website.com/blogs )
so I can show all blogs list here.
Is anyone have an idea about this?
magento2.3.1 pwa
magento2.3.1 pwa
edited Jun 4 at 12:00
Rutvee Sojitra
2,1401422
2,1401422
asked Jun 4 at 11:59
Surendra Kumar AhirSurendra Kumar Ahir
9071819
9071819
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Refer : https://devdocs.magento.com/guides/v2.3/extension-dev-guide/webapi/custom-routes.html
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebapiAsync:etc/webapi_async.xsd">
<route url="V1/widgets" method="POST" alias="createWidget" />
<route url="async/bulk/V1/widget" method="PUT" alias="asyncBulkUpdateWidgets"/>
.........
</services>
This example redefines two routes:
All requests made on endpoint POST /createWidget will be forwarded to POST V1/widgets
All requests made on endpoint PUT /asyncBulkUpdateWidgets will be forwarded to PUT async/bulk/V1/widget
Thanks!!
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%2f277221%2fhow-to-creator-a-custom-router-in-pwa-magento-2-3-1%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
Refer : https://devdocs.magento.com/guides/v2.3/extension-dev-guide/webapi/custom-routes.html
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebapiAsync:etc/webapi_async.xsd">
<route url="V1/widgets" method="POST" alias="createWidget" />
<route url="async/bulk/V1/widget" method="PUT" alias="asyncBulkUpdateWidgets"/>
.........
</services>
This example redefines two routes:
All requests made on endpoint POST /createWidget will be forwarded to POST V1/widgets
All requests made on endpoint PUT /asyncBulkUpdateWidgets will be forwarded to PUT async/bulk/V1/widget
Thanks!!
add a comment |
Refer : https://devdocs.magento.com/guides/v2.3/extension-dev-guide/webapi/custom-routes.html
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebapiAsync:etc/webapi_async.xsd">
<route url="V1/widgets" method="POST" alias="createWidget" />
<route url="async/bulk/V1/widget" method="PUT" alias="asyncBulkUpdateWidgets"/>
.........
</services>
This example redefines two routes:
All requests made on endpoint POST /createWidget will be forwarded to POST V1/widgets
All requests made on endpoint PUT /asyncBulkUpdateWidgets will be forwarded to PUT async/bulk/V1/widget
Thanks!!
add a comment |
Refer : https://devdocs.magento.com/guides/v2.3/extension-dev-guide/webapi/custom-routes.html
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebapiAsync:etc/webapi_async.xsd">
<route url="V1/widgets" method="POST" alias="createWidget" />
<route url="async/bulk/V1/widget" method="PUT" alias="asyncBulkUpdateWidgets"/>
.........
</services>
This example redefines two routes:
All requests made on endpoint POST /createWidget will be forwarded to POST V1/widgets
All requests made on endpoint PUT /asyncBulkUpdateWidgets will be forwarded to PUT async/bulk/V1/widget
Thanks!!
Refer : https://devdocs.magento.com/guides/v2.3/extension-dev-guide/webapi/custom-routes.html
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_WebapiAsync:etc/webapi_async.xsd">
<route url="V1/widgets" method="POST" alias="createWidget" />
<route url="async/bulk/V1/widget" method="PUT" alias="asyncBulkUpdateWidgets"/>
.........
</services>
This example redefines two routes:
All requests made on endpoint POST /createWidget will be forwarded to POST V1/widgets
All requests made on endpoint PUT /asyncBulkUpdateWidgets will be forwarded to PUT async/bulk/V1/widget
Thanks!!
answered 2 days ago
oscprofessionalsoscprofessionals
37417
37417
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%2f277221%2fhow-to-creator-a-custom-router-in-pwa-magento-2-3-1%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