1

I am implementing simple service contracts. don't have much knowledge about service contracts following example from here

How to implement service contract for a custom module in Magento 2?

i am getting error of

"Class Assign\RestService\Model\ResourceModel\Hamburger\CollectionFactory does not exist"

0

Use this GitHub module code maybe it will help you to solve your issue

Example1: https://github.com/astorm/service-contract-example

Your error "Class Assign\RestService\Model\ResourceModel\Hamburger\CollectionFactory does not exist" says you missed to define or include Assign\RestService\Model\ResourceModel\Hamburger\CollectionFactory class

Just remove your whole code related to the service contract and use above module of Alan Storm

OR

Example2: https://github.com/magentow/ServiceContract

Example3: https://github.com/navarr/m2-module-regionlookup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.