Skip to content

magento man

Request does not match any route error Magento 2 API

I’ve created an extension , while visiting magento.com/rest/V1/wishlist/1/2 it throws error. here are my files – di.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”YourCompanyWishlistWebServiceApiWishlistManagementInterface” type=”YourCompanyWishlistWebServiceModelWishlistManagement” /> </config> webapi.xml <?xml version=”1.0″ ?> <routes xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Webapi:etc/webapi.xsd”> <route url=”/V1/wishlist/:customerId” method=”GET”> <service class=”YourCompanyWishlistWebServiceApiWishlistManagementInterface”… Read More »Request does not match any route error Magento 2 API

Magento 2.x.x extension attributes API add object array

Have added custom attribute to order API with following info here: https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ It adds the “customer_feedback”: “this is my feedback” fine to api. How to add an Json object array ? E.G: “my_custom_object”: { “Key1”: “value!”, “Key2”: “value2” } Thanks

How to fix this indexing error?

When I am running indexer:reindex command, I am getting this error. Integrity constraint violation: 1062 Duplicate entry ‘1448-0-1’ for key ‘PRIMARY’, query was: INSERT INTO catalog_product_index_price_temp SELECT catalog_product_index_price_replica.* FROM catalog_product_index_price_replica WHERE (entity_id IN(‘5472’, ‘5842’, ‘5848’, ‘5467’, ‘5468’, ‘5471’, ‘5848’, ‘5467’,… Read More »How to fix this indexing error?