Skip to content

rest-api

Auto Added by WPeMatico

Strip index.php from rest urls

I am having this issue with an external platform which trying to get rest urls from my magento 2.4.5. Issue is that the urls they hit contain index.php inside. They are like this: https://example.com/en_us/index.php/rest/V1/customerGroups/search?searchCriteria%5BcurrentPage%5D=1&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bcondition_type%5D=gteq&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bfield%5D=id&searchCriteria%5Bfilter_groups%5D%5B0%5D%5Bfilters%5D%5B0%5D%5Bvalue%5D=0&searchCriteria%5BpageSize%5D=50 As you see inside the url… Read More »Strip index.php from rest urls

How to save data to database using interface repository api

I’m a newbie magento 2 developer. I’m currently learning how to store data to database using repository-interface-model-api approach. My code is not working. model ItemRepository class ItemRepository implements ItemRepositoryInterface { private $collectionFactory; protected $itemFactory; public function __construct( CollectionFactory $collectionFactory )… Read More »How to save data to database using interface repository api

Automatically create Integration

is there a “new” way to create integrations automatically? Since my modul is gonna be tested in different environments/systems, creating integrations automatically is kind of crucial. check my code below with minor changes from https://devdocs.magento.com/guides/v2.3/get-started/create-integration.html <?php namespace VendorModulSetup; use MagentoFrameworkSetupModuleContextInterface;… Read More »Automatically create Integration