Skip to content

Instantly share code, notes, and snippets.

@zzpaul
Created September 27, 2016 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzpaul/f7f5801cfdc2e4e5569038cdabb27c4b to your computer and use it in GitHub Desktop.
Save zzpaul/f7f5801cfdc2e4e5569038cdabb27c4b to your computer and use it in GitHub Desktop.
Magento 2 - Custom REST API - Vendor\BonusPoint\Api\BonusPointInterface.php
<?php
namespace Vendor\BonusPoint\Api;
interface BonusPointInterface {
/**
* Update free bonus point of a customer.
*
* @api
* @param int $customerId Customer ID.
* @param int $point Free bonus point balance.
* @return boolean True if success. Otherwise, false.
*/
public function updateFreeBonusPoint($customerId, $point);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment