Skip to content

Instantly share code, notes, and snippets.

@zzpaul
Last active October 12, 2016 14:37
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/3fe29a372185e197c278ee4e49f59148 to your computer and use it in GitHub Desktop.
Save zzpaul/3fe29a372185e197c278ee4e49f59148 to your computer and use it in GitHub Desktop.
Magento 2 - Custom REST API
<?php
namespace Vendor\BonusPoint\Model;
use Vendor\BonusPoint\Api\BonusPointInterface;
class BonusPoint implements BonusPointInterface {
public function updateFreeBonusPoint($customerId, $point) {
// Do your logic here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment