A REST API for ZfcUser, suitable for standalone use or in an Apigility application.
POST /user
- Account registrationGET /user/:user_id
- Retrieve user profilePUT /user/:id/email
- Update account email addressPUT /user/:id/password
- Change account password
WARNING: This code is not yet tested, documented or been used in a live environment. Approach with extreme caution.
-
Install module using Composer
composer install adamlundrigan/ldc-zfc-user-api:<version>
-
Enable required modules in your
application.config.php
file:- ZfcBase
- ZfcUser
- LdcZfcUserApi
-
Configure ZfcUser
If you're using LdcZfcUserApi in lieu of ZfcUser's bundled frontend (eg: as part of an Apigility app) you will want to disable the routes which come pre-activated in ZfcUser. To do this, simply add the following lines to your application's config (f.e, to global.php):
'ldc-zfc-user-api' => array(
'nuke_zfcuser_routes' => true,
),
- Apigility RPC resource for account registration
- Apigility RPC resource for change email / change password
- RBAC / ACL integration points
- Some tests might be a good idea
- Some documentation and an example might also be good ideas