Extending the API
Now that we have a basic understanding of how to use the Magento Core API, we can proceed to extend and add our custom functionality. In order to add new API functionality, we have to modify/create the following files:
In order to make our registries accessible for third-party systems, we need to create and expose the following functions
giftregistry_registry.list: This retrieves a list of all the registry IDs; it takes an optional customer ID parameter
giftregistry_registry.info: This retrieves all the registry information; it takes a required registry_id parameter
giftregistry_item.list: This retrieves a list of all the registry item IDs associated with a registry; it takes a required
Get Magento PHP Developer's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.