Notifications
Clear all
Topic starter
OrangeCompany decided to build a REST API based module in the application so that he can share the details of best-selling products to his franchisee. To make it's flexible and customizable in the future, he advised his developers to enable the support of extension_attribute in the API interface so that any new attributes can be added when required.
What is the way to enable the entity/interface to support extension attributes in the module?
- A . Check the interface for the methods getCustomAttributes() and setCustomAttributes() to determine if they are available for the entity.
B. Check the interface for the implementation of Magento\Framework\Api\CustomAttributesDataInterface to enable support for extension attributes
C. Check the interface for the implementation of Magento\Framework\EntityManager\Operation\ExtensionPool to enable support for extension attributes
D. Check the interface for the methods getExtensionAttributes() and setExtensionAttributes() to determine if they are available for the entity.
Suggested Answer: D
Posted : 16/01/2023 2:32 pm