Spryker Backend API to access spryker backoffice.
Hi Team, I want to create backend resource to access backend api and i have created endpoint backend-api.us.spryker.local and defined its entry-point beackendApi. created moduleRestApi and registered. but failed to access http://backend-api.de.spryker.local/moduleendpoint and it is showing error like this
NotFoundHttpExceptionNo route found for "GET http://backend-api.de.spryker.local/"Previous exceptions
None of the routers in the chain matched this request GET / HTTP/1.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.9 Connection: close Content-Length: Content-Type: Host: backend-api.de.spryker.local Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 X-Php-Ob-Level: 1 X-Real-Ip: 172.18.0.1 (0)
Answers
-
You could try clearing the cache of the router. Command to run is;
console router:cache:warm-up
0 -
@gajendra_dubey if you're using the latest version of packages, then I suggest you using the command
console api:router:cache:warm-up
which you may install adding \Spryker\Glue\GlueApplication\Plugin\Console\RouterCacheWarmUpConsole into \Pyz\Zed\Console\ConsoleDependencyProvider.
Please let us know how you solved your issue!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 921 Developer Corner
- 781 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random