FutureActivities / Magento2-ContentManagerApi

A Magento 2 module that extends the BlackBird Content Manager extension to provide REST API support.
MIT License
3 stars 0 forks source link

The "anyType" data type isn't declared. Verify the type and try again. #1

Open enricodeleo opened 3 years ago

enricodeleo commented 3 years ago

Thank you for this great extension!

It works as expected but after activation it breaks swagger on Magento CE 2.4 with the message Failed to load API definition., checking the error log it appears to actually be The "anyType" data type isn't declared. Verify the type and try again.

Any ideas why?

bruno-blackbird commented 3 years ago

Hi @enricodeleo ! I do not know if this is still maintained, but the latest version of Advanced Content Manger added a graphql endpoint. Maybe you can use it instead of this Rest Api ? Regards, Bruno

enricodeleo commented 3 years ago

thank you @bruno-blackbird unfortunately I need to stick on rest api because of the current architecture is consuming everything through rest api and the cost of switching everything to graph would be enormous. Is there any plan of exposing rest api natively from Advanced Content Manger?

bruno-blackbird commented 3 years ago

Unfortunately, we are not planning to expose rest api natively. For your problem, I looked quickly in the code of this module and I do not find a reason why this is not working. There is the documentation for magento webapi : https://devdocs.magento.com/guides/v2.4/extension-dev-guide/service-contracts/service-to-web-service.html I hope that you will be able to solve this.