The purpose of this module is to provide an example API endpoint for frontend development examples.
Install via composer
composer require vinaikopp/module-example-gummypoints ^1.0.0
The purpose of the module is not to demonstrate a sophisticated endpoint, but rather to provide a simple source of data for doing FPC related experiments and exercises.
API Endpoint: /rest/V1/customer_gummypoints
The API endpoint can only be accessed by logged in customers and will return a random integer value.
API Endpoint: /rest/V1/customer_gummypoints/:customerId
The API endpoint is only open to admins authorized to manage customers. It will return a random integer value.
The module also provides a customer data section with the code
customer-gummypoints
. It is refreshed during login, logout,
checkout/onepage/saveOrder
and add to cart actions.