What is wrong with the code?

An Adobe Commerce developer has been tasked to create a new rest API endpoint to get a list of items for a CustomEntity. When testing the endpoint, it throws an exception.

This is the code the developer has written forMyVendorModuleApiCustomEntityRepositoryInterface:

And this is the implement method within MyVendorMyModulemodelCustomEntityRepository:

What is wrong with the code?
A . The @return annotation is missing in the MyVendorMyModuleApiCustomEntityRepositoryInterface::getList function.
B . The implemented getlist function is returning an array, it should return an instance of MyVendorMyModuleApiDataCustomerEntitySearcResultslnterface .
C . MagentoFrameworkApiSerchCriteriaInterface $searchCriteria is not a valid parameter for the getList function.

Answer: C

Latest AD0-E709 Dumps Valid Version with 135 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Sukhmeet
Sukhmeet
2 years ago

Option should be correct Answer