Hey Team, I want to access backend API but when i ...
# help
r
Hey Team, I want to access backend API but when i call backend-api.us.spryker.local it redirects me to backoffice i am using fresh setup but still having same issue or am i missing something i have checked \public\BackendApi\index.php and it uses -> use Spryker\Zed\Application\Communication\Bootstrap\_BackendApiBootstrap_; @plain-city-95899 @wooden-king-30682 @big-apple-4330 @mammoth-autumn-37948 can you please help me out.
p
Heyhey, why do you wan to access backend-api? If you want to use and/or customise an api for administrational tasks, please have a look at our new Glue Backend Api which got migrated into the demoshops starting with version 202307.0 🙂
r
is there any way to access it in existing setup ?
p
By updating the shop, but everything glue related could maybe be enough
most of it was already available in 202212.0 by the modules but not integrated into demoshop config.
r
if i want to add into the config what changes i need to do ?
p
What version is your shop running right now?
and what system is it? b2b, b2c ? marketplace b2b?
r
b2b-demo-marketplace.git -b 202212.0-p2
p
Have a look here: https://github.com/spryker-shop/b2b-demo-marketplace/compare/202212.0-p2...202307.0 1. Focus on config/Shared/config_default.php and related config files, do not copy&paste everything but just adjust the glue related stuff. 2. update the deploy.dev.yml (and other yml files) 3. provide new endpoints in the public folder 4. Look for changes in the folder src/Pyz/Glue/ your docker-sdk should be already ready for the new glue api since this was prepared some time ago. If you apply the mentioned changes then you should be able to use the new glue api structure but still keep the old existing endpoints without refactoring. Maybe you have to update/install some few modules; but this you should notice latest if there are some namespaces not available when you want to use certain classes
And btw, pls stop pinging random people incl me just to get a faster answer. The active devs in the channel will see it and if they have time and an idea they will answer ;)
r
Ok i will keep in mind.